• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems compiling this code.  RSS feed

 
WeiJie Lim
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following code shouldn't have errors since it is the answers for one of its exercises =/



I got the following 9 errors when I tried to compile :

ex20ans.java:6: error: unmappable character for encoding Cp1252
System.out.print(ΓÇ£aΓÇ?);
^
ex20ans.java:9: error: unmappable character for encoding Cp1252
System.out.print(ΓÇ£-ΓÇ?);
^
ex20ans.java:11: error: unmappable character for encoding Cp1252
System.out.print(ΓÇ£b cΓÇ?);
^
ex20ans.java:14: error: unmappable character for encoding Cp1252
System.out.print(ΓÇ£dΓÇ?);
^
ex20ans.java:6: error: illegal start of expression
System.out.print(ΓÇ£aΓÇ?);
^
ex20ans.java:9: error: illegal start of expression
System.out.print(ΓÇ£-ΓÇ?);
^
ex20ans.java:11: error: ')' expected
System.out.print(ΓÇ£b cΓÇ?);
^
ex20ans.java:11: error: ';' expected
System.out.print(ΓÇ£b cΓÇ?);
^
ex20ans.java:14: error: illegal start of expression
System.out.print(ΓÇ£dΓÇ?);
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have a problem with your double quotes. Check this.
 
WeiJie Lim
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Christophe Verré wrote:You have a problem with your double quotes. Check this.


OH. Thanks alot =D

Failed to spot the smart quotes..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!