Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in a question in head first java  RSS feed

 
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 ?
 
Marshal
Posts: 58828
179
  • 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: 58828
179
  • 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: 58828
179
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!