wiley_pastebin

Lesson 1 arrays 3

Mar 15th, 2019
3,489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. public class ArrayTest {
  2.  
  3.  public static void main(String[] args){
  4.   int[] integerArray = new int[10];
  5.   integerArray[0] = 5;
  6.   integerArray[1] = integerArray[0] + 10;
  7.  
  8.   System.out.println("Length: " + integerArray.length);
  9.  }
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment