public class Programming
{
public static void main(String args[])
{
System.out.println("I am learning how to program.");
}
}
Compile this and execute this program then modify it to display I am learning how to program in Java. Change class name to Javaprogramming.java. compile and execute. Modify the Javaprogramming class so it prints two lines of output. Change name to Awesome. Add second output statement that displays That's awesome !
Save as awesome.java then compile and execute
public class Javaprogramming
{
public static void main(String args[])
{
System.out.println("I am learning
how to program in java.");
}
}
public class awesome
{
public static void main(String args[])
{
System.out.println("I am learning
how to program in java.\n");
System.out.println("That's awesome
!");
}
}
Get Answers For Free
Most questions answered within 1 hours.