Biblioteca Java - Blame information for rev 38
Subversion Repositories:
Rev | Author | Line No. | Line |
---|---|---|---|
38 | mihai | 1 | |
2 | public class Senzor { | ||
3 | static int k; | ||
4 | int value; | ||
5 | boolean active; | ||
6 | |||
7 | public static void main(String[] args) { | ||
8 | Senzor s1 = new Senzor(); | ||
9 | Senzor s2 = new Senzor(); | ||
10 | |||
11 | s1.value = 100; | ||
12 | s2.value = 200; | ||
13 | s1.k = 50; | ||
14 | System.out.println("Senzor s1:"+s1.value); | ||
15 | System.out.println("Senzor s2:"+s2.value); | ||
16 | |||
17 | System.out.println("Senzor s1 k:"+s1.k); | ||
18 | System.out.println("Senzor s2 k:"+s2.k); | ||
19 | System.out.println("Senzor s2 k:"+Senzor.k); | ||
20 | |||
21 | } | ||
22 | } |