Oh wait, there's another problem, what if the letter in the string doesn't have global variable? That function will cause error. Is there a way to ignore global variable if letter in the string doesn't have global variable, for example making the class function optional if the letter doesn't have global variable?
public class GrossmontBank
//class variables (global - accessible throughout this class)
//scanner object to be used throughout
private static Scanner input = new Scanner(System.in);