This program creates a method printText
that prints the following string of characters: “In the beginning there were the swamp, the hoe and Java.” and a line break.
My Code
public class PrintingOutText {
public static void printText() {
// Write your code here
System.out.println("In the beginning there were the swamp, the hoe and Java.");
}
public static void main(String[] args) {
printText();
}
}
Model Code
public class PrintingOutText {
public static void printText() {
// Write your code here
System.out.println("In the beginning there were the swamp, the hoe and Java.");
}
public static void main(String[] args) {
printText();
}
}
Comments
Both are exactly the same.