alphabet

Does anybody knows why the system doesn't print out the alphabet ?

/**

* Das Alphabet auf dem Bildschirm ausgeben

*/

publicvoid alphabet()

{

for (char buchstabe='a'; buchstabe <='Z'; ++buchstabe)

System.out.print(buchstabe);

}

Thank you.

[575 byte] By [JustLilla] at [2007-11-26 14:53:15]
# 1
Because 'Z' (0x5A) < 'a' (0x61)You should use 'z' (0x7A) instead of 'Z'Regards
jfbrierea at 2007-7-8 8:41:33 > top of Java-index,Java Essentials,Java Programming...
# 2
'a' is 97'Z' is 90Try 'A' to 'z' instead.
jverda at 2007-7-8 8:41:33 > top of Java-index,Java Essentials,Java Programming...
# 3
Hey it works ! :) *pleased*
JustLilla at 2007-7-8 8:41:33 > top of Java-index,Java Essentials,Java Programming...