if (Input=="A") { Input= JOptionPane.showInputDialog(null, "Which test would you like to sort?\n" + "Choose a test 1-4"); number= Integer.parseInt(Input); int[] sort= new int[6]; SortScores(sort, number); }