Lesson 1
First java program
public class First{
public static void main(String[] args){
System.out.println("My First Java Code");
System.out.println("Welcome to the Java World");
}
}
This is a very simple java code.First of all I need to tell all of you how to work with java.You know java is a programming language.It helps source file(human readable format) converts to class file(computer readable format). I will explain every things in next lessons.
There are two common ways to run a java code like this.They are,
1.Type the code in textpad & use cmd(command prompt) to
run that.
2.Use java IDEs like NetBeans & Eclipse.
You can select one method for enter the java world.
Well done!Keep it up!
ReplyDeletesure bro.
Delete