Skip to content

Instantly share code, notes, and snippets.

@crazyhitty
Created April 24, 2016 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crazyhitty/f48e2c010dacf663d50b6490be609d44 to your computer and use it in GitHub Desktop.
Save crazyhitty/f48e2c010dacf663d50b6490be609d44 to your computer and use it in GitHub Desktop.
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