Biblioteca Java - Blame information for rev 4
Subversion Repositories:
Rev | Author | Line No. | Line |
---|---|---|---|
4 | mihai | 1 | package oop.controltemperatura; |
2 | |||
3 | |||
4 | import java.util.Random; | ||
5 | |||
6 | |||
7 | public class SenzorTemperatura { | ||
8 | int v; | ||
9 | |||
10 | int citeste(){ | ||
11 | Random r = new Random(); | ||
12 | v = r.nextInt(40); | ||
13 | return v; | ||
14 | } | ||
15 | |||
16 | void scrie(int x){ | ||
17 | v = x; | ||
18 | } | ||
19 | } |