Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MainClass {
- public static void main(String[] args){
- Menu menu = new Menu();
- boolean again = true;
- do {
- try {
- int chose= menu.chose();
- again=false;
- menu.menuCalcolator(chose);
- }
- catch(CustomException e){
- System.err.println(e + "prova");
- }
- catch(Exception e){
- System.err.println("Hai inserito un carattere errato. Riprova");
- }
- }while(again);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement