• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in a question in head first java  RSS feed

 
Jyotsna Balhotra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have just started with head first java,second edition and was trying to solve the pool puzzle on page no 24.
The output shown in the question does not match with the solution provided later.....it seems the solution is wrong....can anyone help ?
 
Campbell Ritchie
Marshal
Posts: 56546
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got
A noise
Annoys
An oyster
You must have copied something wrongly.
 
Jyotsna Balhotra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no the last line an oyster??where does the " " comes between an and oyster as per the solution???
 
Campbell Ritchie
Marshal
Posts: 56546
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I remember correctly, the text to print oyster is " oyster"
I do not have the book with me at the moment, so I cannot verify that.
 
Jyotsna Balhotra
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ohhhhh yes was missin out on that thing. Thanks a lot
 
Campbell Ritchie
Marshal
Posts: 56546
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!