Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Exe {
- static int[][] array = new int[3][2];
- static void generarNumeros() {
- for(int i=0 ; i<array.length ; i++) {
- for(int j=0 ; j<array[i].length ; j++) {
- int random = (int) (Math.random()*100 +1);
- array[i][j] = random;
- }
- }
- }
- static int mayorNumero() {
- int aux1 = 0, aux2 = 0, auz3 = 0;
- for(int i=0 ; i<array.length ; i++) {
- for(int j=0 ; j<array[i].length ; j++) {
- }
- }
- }
- public static void main(String[] args) {
- generarNumeros();
- for(int i=0 ; i<array.length ; i++) {
- for(int j=0 ; j<array[i].length ; j++) {
- System.err.print(" " + array[i][j]);
- }
- System.err.println("");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement