Our professor is making us do some basic programming with Java, he gave a website and everything to register and submit our questions, for today I need to do this one exampl
This is good for taking multiple line input
import java.util.Scanner; public class JavaApp { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); String line; while(true){ line = scanner.nextLine(); System.out.println(line); if(line.equals("")){ break; } } } }