Okay so beginner programmer here and I've been self-teaching myself Java in preparation for my into class in the Spring.
I am having trouble getting this program to run. As you can see, I am trying to use the threeLine method to create space between "First Line" and "Second Line" in the main method.
public class method {
public static void threeLine() {
newLine();
newLine();
newLine();
System.out.println("");
}
public static void main (String[] args) {
System.out.println ("First Line."); threeLine();
System.out.println ("Second Line.");
}
}
Anyway, I am at adding new methods, and here's the code that I have that is not running (I am using a book and the book has the EXACT code but mine isn't running for some reason. I am getting error code "newLine method not defined for the class method"
Thanks in advance