Created
September 29, 2019 01:53
-
-
Save sugiartocokrowibowo/e6fddb1c041f465f68030fbd2461bdaa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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