Biblioteca Java - Rev 4
Subversion Repositories:
package introducere.java;
import java.util.*;
public class NumarAleator {
public static void main(String[] args){
Random r = new Random();
int x = r.nextInt(100);
int y = r.nextInt(100);
int s = x + y;
System.out.println(s);
int[] a = new int[10];
a[4] = 90;
for(int i=0;i<a.length;i++){
System.out.println(a[i]);
}
}
}
import java.util.*;
public class NumarAleator {
public static void main(String[] args){
Random r = new Random();
int x = r.nextInt(100);
int y = r.nextInt(100);
int s = x + y;
System.out.println(s);
int[] a = new int[10];
a[4] = 90;
for(int i=0;i<a.length;i++){
System.out.println(a[i]);
}
}
}