Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (choicesObjects == b) {
- System.out.println("TEST 2");
- System.out.println("Object: Right triangle");
- System.out.println("nEnter length of Right triangle: ");
- int lengthOfTriangle = 0;
- try {
- lengthOfTriangle = input.nextInt();
- } catch(InputMismatchException e) {
- System.out.println("nError: user input must be an integer greater than 0.n");
- System.out.println("Object: Right triangle");
- System.out.println("nEnter length of Right triangle: ");
- input.next();
- }
- //method stuff
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement