Advertisement
cesarnascimento

caracteristicas dos arrays aula 47

May 25th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. //Características dos Arrays
  2. // 1- Dimensão
  3. // 2- Índice
  4. // 3- Elementos
  5. // 4- Tipo
  6. // 5-
  7.  
  8.  
  9. public class exript {
  10.  
  11.     public static void main(String[] args) {
  12.         int [] a = new int[10];
  13.        
  14.         a[0] = 0;
  15.         a[1] = 111;
  16.         a[2] = 222;
  17.         a[3] = 333;
  18.         a[4] = 444;
  19.         a[5] = 1000;
  20.        
  21.         System.out.println(a[4]);
  22.         System.out.println(a[5]);
  23.         System.out.println(a[6]);
  24.  
  25.     }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement