Write a complete Java program that prints the following output. Use at least one static method besides main to help you.
There's one thing every coder must understand:
The System.out.println command.
There's one thing every coder must understand:
The System.out.println command.
Program:
public class Ch01Ex06
{
public static void main(String[] args)
{
printMessage();
System.out.println();
printMessage();
}
public static void printMessage()
{
System.out.println("There's one thing every coder must understand:");
System.out.println("The System.out.println command.");
}
}
Output:
There's one thing every coder must understand:
The System.out.println command.
There's one thing every coder must understand:
The System.out.println command.