Created
April 24, 2016 12:11
-
-
Save crazyhitty/f48e2c010dacf663d50b6490be609d44 to your computer and use it in GitHub Desktop.
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
class Main { | |
public static void main(String[] args) { | |
for(int i=0; i<26; i++){ | |
System.out.print(getAlphabetsAZ()[i]); | |
} | |
} | |
public static char[] getAlphabetsAZ(){ | |
char[] alphabetArr=new char[26]; | |
int x=0; | |
for(int i=97; i<123; i++){ | |
alphabetArr[x]=(char)i; | |
x++; | |
} | |
return alphabetArr; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment