Biblioteca Java - Blame information for rev 4
Subversion Repositories:
Rev | Author | Line No. | Line |
---|---|---|---|
4 | mihai | 1 | package introducere.java; |
2 | |||
3 | import java.util.*; | ||
4 | |||
5 | public class NumarAleator { | ||
6 | public static void main(String[] args){ | ||
7 | Random r = new Random(); | ||
8 | int x = r.nextInt(100); | ||
9 | int y = r.nextInt(100); | ||
10 | int s = x + y; | ||
11 | System.out.println(s); | ||
12 | |||
13 | int[] a = new int[10]; | ||
14 | a[4] = 90; | ||
15 | for(int i=0;i<a.length;i++){ | ||
16 | System.out.println(a[i]); | ||
17 | } | ||
18 | } | ||
19 | } |