Advertisement
cesarnascimento

usuario setar tamanho do array

Feb 24th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.19 KB | None | 0 0
  1.         Scanner sc = new Scanner(System.in);
  2.         int tamanho;
  3.         System.out.println("digite o tamanho do array");
  4.         tamanho = sc.nextInt();
  5.         int array[] = new int[tamanho];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement