Advertisement
Guest User

Beug nom aéroport

a guest
Nov 28th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.92 KB | None | 0 0
  1. se situe dans VueConsole
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. private void afficheCreationAeroport() {
  12.         int y;
  13.         int x;
  14.  
  15.         System.out.println("----------------------------------------------");
  16.         System.out.println("Nom aéroport :");
  17.         String nom = new Scanner(System.in).nextLine();
  18.         switch (nom) {
  19.             case "":
  20.                 System.err.println("Nom aéroport --> null");
  21.                 this.afficheMenuChoixGeneral();
  22.             default:
  23.  
  24.         }
  25.  
  26.         do {
  27.             System.out.println("Position X :");
  28.             x = new Scanner(System.in).nextInt();
  29.         } while (x < 0 || x > 5000);
  30.         do {
  31.             System.out.println("Position Y :");
  32.             y = new Scanner(System.in).nextInt();
  33.         } while (y < 0 || y > 5000);
  34.  
  35.         Controller.getInstance().lancementScenario(new Declencheur(Declencheur.CREATION_AEROPORT, (new Aeroport(x, y, nom))));
  36.  
  37.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement