private ArrayList<Integer> getNumbers(Scanner sc){
    ArrayList<Integer> num = new ArrayList<Integer>();
    String next = sc.next();
    String line = next;
    try{
      line += sc.nextLine();
    }
    catch(java.util.NoSuchElementException e){
    }
    sc = new Scanner(line);
    while(sc.hasNext()){
      try{
        num.add(sc.nextInt());
      }
      catch(java.util.InputMismatchException e){
        System.out.println(sc.next() + " is not a valid option!");
      }
    }
      
    return num;
  }