Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package array;
- import java.util.Scanner;
- import java.util.Random;
- public class Array
- {
- public static void main(String[] args)
- {
- //int x,y;
- int[] Array;
- Scanner in = new Scanner(System.in);
- System.out.print("x...\n");
- int x = in.nextInt();
- System.out.print("y...\n");// TODO code application logic here
- int y = in.nextInt();
- int z = x*y;
- Array = new int[z] ;
- for(int i = 0; i < z; i++)
- {
- myFirstArray[i] = (Math.random (*100));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement