I'm having a problem printing letters using a for loop..
I have this code:
The problem is what if I want to print out all the letters to Z? Obviously, putting all letters inside the letter array isn't really the best idea so I was wondering if something similar to this is possible:
I'm getting invalid unicode escape error on that code .. Thanks!
Actually, your first code snippet has a bug. Line 4 should probably read:
I think Unicode escapes need to be two characters (i.e., \uNN) or four characters (\uNNNN). In any case, your second snippet won't work the way you think it will. You'll just print out whatever the Unicode character is, plus the number, six times. The plus just concatenates them in the output.