J2SE Programming
Here now we go for our first program i.e. printing hello world in java.
class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World");
}
}
Now compile it as show in fig.
Firstly you have to move into the directory where the file is saved(use cd to move between Directories )
Once you have compiled it then Run it as Shown in fig below
Here now we go for our first program i.e. printing hello world in java.
class HelloWorld
{
public static void main(String[] args)
{
System.out.println("Hello World");
}
}
Now compile it as show in fig.
Firstly you have to move into the directory where the file is saved(use cd to move between Directories )
Once you have compiled it then Run it as Shown in fig below
Thnx for helping me.
ReplyDelete