with the following code, how can i use the print statement in the method? it sounds like it has to be in the main because in the method, it does not accept it since you close the in and output. the only solution i could come up, was to force the program to run the method, then end after i'm finished with it.

Java Code:
out.println("here is the data!");
		public static String line(Scanner in){