Untitled

mail@pastecode.io avatar
unknown
java
3 years ago
413 B
2
Indexable
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(); 
    }

  }

}