Biblioteca Java - Blame information for rev 3

Subversion Repositories:
Rev:
Rev Author Line No. Line
3 mihai 1 /*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 package designpatterns.mvc.senzor;
7  
8 import java.util.Random;
9  
10 /**
11  *
12  * @author evo2
13  */
14 public class Exemplu2MVC {
15  
16     /**
17      * @param args the command line arguments
18      */
19     public static void main(String[] args) throws Exception{
20        Senzor s = new Senzor();
21        SenzorView v = new SenzorView();
22        SenzorControlerMVC mvnc = new SenzorControlerMVC(s, v);
23  
24        Random r = new Random();
25        for(int i = 0;i<100;i++){
26           int x = r.nextInt(100);
27           s.setValoare(x);
28           Thread.sleep(500);
29        }
30     }
31  
32 }