I want to print n Greek characters in Java starting from alpha (whitch has the "\u03B1" code).This is what I had in mind:
String T = "";
for(int i = 0,aux = 0;i<n;i++)
{
aux = '\u03B1' + i;
T +=Character.toString((char)aux);
}
System.out.println(T);
But it prints n question marks instead.
Let's say n=3,on the output i get "???".
I thought that maybe my method is wrong but then again if I try something like this:
System.out.println("\u03B1\u03B2\u03B3");
I get the same output:"???"
Why do I get this output instead of the desired characters and how can I print them like I want to?
Note:I use IntelliJ as IDE and my OS is Windows 10.