This is the code I currently have to concatenate a then b then c and so on in a loop (scanned number of times) using java:
public String toString() { String answers = ""; int numChoices = choices.length; char letter; String result; int letterNum = 0061; while (numChoices > 0) { letter = "\u" + letterNum; result = letter + ") " + choices[choices.length-numChoices] + "\n"; answers += result; numChoices --; letterNum ++; } return question + "\n" + answers; } I thought unicode escape sequences would be my best option, but it didn't work the way I tried so I'm obviously doing something wrong. How do I fix this?
The error I'm getting is:
MultChoice.java:40: illegal unicode escape letter = "\u" + letterNum;