private static int getAmount( int MINIMUN_SELECTION,int MAXIMUM_SELECTION) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String input = "";
        int output = 0;
        boolean validInput = false;
        do {
            
             try {
                    input = br.readLine();
                    if (input.length() > 5) {
                         continue;
                     }
                    output = Integer.parseInt(input);
                    if (output < MINIMUN_SELECTION || output > MAXIMUM_SELECTION) {
                        System.out.println("Please only select from range: "+MINIMUN_SELECTION+" to "+MAXIMUM_SELECTION);
                        continue;
                    }
                    validInput = true;
                 } catch (IOException ioe) {
                    System.out.println(ioe.getMessage());
                    ioe.printStackTrace();
                    validInput = false;
                 } catch (NumberFormatException nfe) {
                     validInput = false;
                }
         } while (validInput == false);
         return output;
    }