• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems compiling this code.

 
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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ΓÇ?);
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have a problem with your double quotes. Check this.
 
WeiJie Lim
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
reply
    Bookmark Topic Watch Topic
  • New Topic