Hi all,
when i try to compile my project i have this error :
duplicate case label error.
Below the code where the error is raised:
for (int i = 0; i < n; i++) {
char c = s.charAt(i);
switch (c) {
case '<': sb.append("<"); break;
case '>': sb.append(">"); break;
case '&': sb.append("&"); break;
case '"': sb.append("""); break;
case 'à': sb.append("à");break;
case 'À': sb.append("À");break;
case 'â': sb.append("â");break;
case 'Â': sb.append("Â");break;
case 'ä': sb.append("ä");break;
case 'Ä': sb.append("Ä");break;
case 'å': sb.append("å");break;
case 'Å': sb.append("Å");break;
case 'æ': sb.append("æ");break;
case 'Æ': sb.append("Æ");break;
case 'ç': sb.append("ç");break;
…
In all the line.
I compiled in windows machine and all works fine.
I try ti compile in my linux machine and I have that error.
Some body can help me?
Tnx,
Luca