private static void caratInputValidator(){ 
        while (!validInput) {
            try {
    			System.out.print("You selected to search by carat. Please enter a carat: ");
    			caratInput = actionInput.nextDouble();
    			System.out.println("You entered: " + caratInput);
    			validInput = true;
				if(data1.isEmpty()) {
		    		data1 = caratInput.toString();
				} else {
					data2 = caratInput.toString();
				}
            } catch (InputMismatchException e) {
                System.out.println("Invalid data type input. Please try again: ");
                actionInput.nextLine();
            }
        }
		validInput = false;
	}