Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. package array;
  2.  
  3. import java.util.Scanner;
  4. import java.util.Random;
  5. public class Array
  6. {
  7.  
  8.  
  9. public static void main(String[] args)
  10. {
  11. //int x,y;
  12. int[] Array;
  13. Scanner in = new Scanner(System.in);
  14. System.out.print("x...\n");
  15. int x = in.nextInt();
  16. System.out.print("y...\n");// TODO code application logic here
  17. int y = in.nextInt();
  18. int z = x*y;
  19. Array = new int[z] ;
  20. for(int i = 0; i < z; i++)
  21. {
  22. myFirstArray[i] = (Math.random (*100));
  23. }
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement