So I'm supposed to write out the upper and lowercase Greek alphabet for an assignment, but I feel like there's a way in Java that I can use a loop, and casting ints to chars (or something along those lines) in order to do this most efficiently. So i tried this:
public class GreekAlphabet{
public static void main(String[] args){
char output;
for (int i=0;i<1000;i++){
output= (char) i;
System.out.println(output);
}
}
}
but it's not printing out greek letters, and after a certain amount of chars (256 I'm guessing), it's all question marks. Is there anyway to get an extended char set, or something like that?