Created
November 26, 2017 03:30
-
-
Save rahulmalhotra/63b876df0f5abebbf0ef9e9e1a3a6744 to your computer and use it in GitHub Desktop.
Program to create 1-D Array in Java
This file contains 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 array { | |
public static void main(String[] args) { | |
int months[]={1,2,3,4,5,6,7,8,9,10,11,12}; | |
System.out.println("Months - "); | |
for(int i=0;i<12;i++) | |
System.out.println(months[i]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment