• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

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..
 
The government thinks you are too stupid to make your own lightbulb choices. But this tiny ad thinks you are smart:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic