Untitled
import java.util.Scanner; public class TestFile { public static void main(String[] args) { getUserInput(); getUserInput(); } static String getUserInput() { Scanner in = new Scanner(System.in); try { System.out.println("Enter something: "); String userChoice = in.nextLine(); return userChoice; } finally { // in.close(); } } }