Skip to content

Instantly share code, notes, and snippets.

@sugiartocokrowibowo
Created September 29, 2019 01:53
Show Gist options
  • Save sugiartocokrowibowo/e6fddb1c041f465f68030fbd2461bdaa to your computer and use it in GitHub Desktop.
Save sugiartocokrowibowo/e6fddb1c041f465f68030fbd2461bdaa to your computer and use it in GitHub Desktop.
public class LatihanArray002{
public static void main(String[]amirul){
int[] myArray;
myArray = new int[5];
myArray[0] = 14;
myArray[1] = 7;
myArray[2] = 2;
myArray[3] = 5;
myArray[4] = 9;
for(int k=0;k<myArray.length;k++){
System.out.println(myArray[k]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment