Monday, December 29, 2014

Java Tutorial For Beginners 13 - Arrays in Java















1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
package lesson1;
public class MyClass {

 public static void main(String[] args) {
  int[] myintarray = {100,31,26,48,52};
  /*
  int[] myIntArray = new int[3];
  int[] myIntArray = {1,2,3};
  int[] myIntArray = new int[]{1,2,3};
  */
  int index=0;
  while(index < 5) {
  System.out.println(myintarray[index]);
  index++;
  }
 }

}








Searches related to array java

arraylist java

string array java

array class java

multidimensional array java

array length java

dynamic array java

2d array java

print array java

Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com


Stuff I use to make videos

Windows notebook - http://amzn.to/2ADOPrW

Apple MacBook Pro - http://amzn.to/2AC0WG2

Microphone - http://amzn.to/2AC1kV0

notebook mouse - http://amzn.to/2BmeZ2d