• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Compile Errors  RSS feed

 
Penny Quebbeman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am just beginning to learn java. I purchased a book titled "Head first Java". I have typed code that is in this book exactly as it appears and I can't get it to compile. The error is giving me the impression that it is expecting a ; after the while condition. I know this is a really dumb, basic question, but we all have to start somewhere. Where would I find a list of Java compile errors. Thanks!!!
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

You could start by posting the complete error message and the code that you're trying to compile. If you post code, please be sure to UseCodeTags.
 
Miklos Szeles
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Penny,
Try this. Or paste your code between code tags here, and also paste the erro message, so we can help to figure out the problem.
 
Penny Quebbeman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following is the code I have been trying to compile. You can't get much simpler than this. Thank you so much for your help!!

 
Miklos Szeles
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see one error but I advice you to post the error message so we can help you to figure out from the message what is wrong. That will help you much more than just getting the answer.
 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hint : java keywords are case-sensitive.
 
Penny Quebbeman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had capitalized the "w" in while. Thank you!!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!