Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int day = 0;
- int year = 0;
- int month = 0;
- input = JOptionPane.showInputDialog("What is Client " + (i+1) + "day of birth?");
- day = Integer.parseInt(input);
- input = JOptionPane.showInputDialog("What is Client " + (i+1) + "month of birth?");
- month = Integer.parseInt(input);
- input = JOptionPane.showInputDialog("What is Client " + (i+1) + "year of birth?");
- year = Integer.parseInt(input);
- if (date.calcDate(month, day, year) == false || input.equals(" ")
- || input.equals(null) || input.equals(""))
- {
- do
- {
- input = JOptionPane.showInputDialog("ERROR! What is Client " + (i+1) + "day of birth?");
- day = Integer.parseInt(input);
- input = JOptionPane.showInputDialog("ERROR! What is Client " + (i+1) + "month of birth?");
- month = Integer.parseInt(input);
- input = JOptionPane.showInputDialog("ERROR! What is Client " + (i+1) + "year of birth?");
- year = Integer.parseInt(input);
- }while(date.calcDate(month, day, year) == false || input.equals(" ")
- || input.equals(null) || input.equals(""));
- }
- else
- {
- healthApp.setBirthDate(day, month, year);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement