Advertisement
maha_kaal

Traffico Main

Jul 19th, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.69 KB | None | 0 0
  1. import MyTools.*;
  2. public class Traffico_Main {
  3.  
  4.     /**
  5.      * @author: Sukhdev Mohan && Andrea Bonatti
  6.      */
  7.    
  8.     final private static int NUMRIGHE_STRADA = 5;
  9.     final private static int NUMCOLONNE_STRADA = 20;
  10.    
  11.     final private static String MSG_INIZIALE = "Strada inizializzata:";
  12.     final private static String MSG_CONTINUA = "Proseguire la simulazione ?";
  13.    
  14.     public static void main(String[] args) {       
  15.         Strada strada = new Strada(NUMRIGHE_STRADA,NUMCOLONNE_STRADA);
  16.        
  17.         strada.inizializza();
  18.  
  19.         System.out.println(MSG_INIZIALE);
  20.         System.out.println(strada);
  21.        
  22.             while ( MyTools.confirm(MSG_CONTINUA) )
  23.             {
  24.                 strada.evoluzione();
  25.                 System.out.println(strada);
  26.             }
  27.         }
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement