• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

dollar

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi every one I hope you doing well I have a bit of confusion with creating a program that I can calculate dollar to rand can any one assist me please this what I have done so far
can someone assist me please
 
Rancher
Posts: 1059
27
Netbeans IDE Oracle MySQL Database Tomcat Server C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you need further?
 
Sheriff
Posts: 8528
615
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Please have a look how to UseCodeTags (<- link to click on) when you post an actual code, so your code could look better. I have added them for you this time as well as removed empty lines.

Does your code compiles?
 
Saloon Keeper
Posts: 9742
80
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
 
Liutauras Vilda
Sheriff
Posts: 8528
615
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Line 4 too as well as to line 5.
 
Liutauras Vilda
Sheriff
Posts: 8528
615
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually to line 6 and to line 7 and line 8 as well.
 
Liutauras Vilda
Sheriff
Posts: 8528
615
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unfortunatelly to line 1 and 2 also.
 
ilunga Elisse
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi there the code does not compile that why I ask for your help and assistance if the code is correct
 
Sheriff
Posts: 27452
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It doesn't compile because all of those lines the others pointed to are wrong. Java is case-sensitive, so it makes a difference whether you use capital letters or not. So you should use "String", not "string" for the String type and so on. You have case errors on almost every line.
 
ilunga Elisse
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok can someone tell me how should I make my lines correctly for the program to work ? please
 
author
Posts: 23928
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

ilunga Elisse wrote:ok can someone tell me how should I make my lines correctly for the program to work ? please



As Paul (and many others) already mentioned, the majority of your compile errors are caused by the fact that Java is case sensitive. I recommending looking at the compile error, and finding the matching class (in the JavaDocs) for it. Just confirm the correct case and fix it in your code... also, as a hint, the Java core classes starts with a capital letter.

Henry
 
Liutauras Vilda
Sheriff
Posts: 8528
615
Mac OS X VI Editor BSD Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ilunga Elisse, of couse what Paul and Henry tried to tell you, that case sensitivity is a major problem in your code, but not the only one.
Each statement suppose to start end with semi colon. And those are missing on lines 1, 7, 8. On line 4 is missing one of parenthesis.

I'm wondering, maybe it is an exercise, and your professor asked you to find and fix mistakes in this code snippet, but you haven't even tried to do so.
 
It was the best of times. It was the worst of times. It was a tiny ad.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic