Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

dollar  RSS feed

 
ilunga Elisse
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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
 
Les Morgan
Rancher
Posts: 768
19
C++ Java MySQL Database Netbeans IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you need further?
 
Liutauras Vilda
Marshal
Posts: 4650
318
BSD
  • Mark post as helpful
  • send pies
  • 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?
 
Carey Brown
Bartender
Posts: 2998
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look closely at line 7.
 
Liutauras Vilda
Marshal
Posts: 4650
318
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Line 4 too as well as to line 5.
 
Liutauras Vilda
Marshal
Posts: 4650
318
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually to line 6 and to line 7 and line 8 as well.
 
Liutauras Vilda
Marshal
Posts: 4650
318
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunatelly to line 1 and 2 also.
 
ilunga Elisse
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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
 
Paul Clapham
Sheriff
Posts: 22504
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
ok can someone tell me how should I make my lines correctly for the program to work ? please
 
Henry Wong
author
Sheriff
Posts: 23283
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • 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
Marshal
Posts: 4650
318
BSD
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!