I want to build an Array[] with the numbers 1-100;
After the program turns the String inputAmount ,into a double input, I'm going to divide input by 20 = withdrawIncrement.
How do I check withdrawIncrement through the Array[] to find a match
private class BtnHandler implements ActionListener { public void actionPerformed(ActionEvent event) { exit = ""; while(accountBoolean == true && exit != null) { if(event.getSource() == btnWithdraw) { transCount++; String inputAmount = JOptionPane.showInputDialog("Enter amount to withdraw from Savings"); double input = Double.parseDouble(inputAmount); /////////THIS IS WHERE I WANT TO CHECK TO MAKE SURE WITHDRAWINCREMENT IS IN ARRAY[]///////////////////// savingsBalance = savingsBalance - input; if(savingsBalance > 0) { if(transCount <= 4) { JOptionPane.showMessageDialog(null, "Savings account balance after withdraw: " + savingsBalance, "Withdraw Window", JOptionPane.PLAIN_MESSAGE);