Fred Masen wrote:Each I quit Java programming for those kind of logic mistakes. This has been going on for years now. Please help me
Fred Masen wrote:Francis what you have posted is what the book of Gaddis starting out Java example program was giving me and I understand it perfectly fine. In order to improve my coding skills I tried to included the age feature but it does not work because as I said it seems to be missing a for loop for the age feature. .
50 is wrong. There's a reason why this is happening.
Which book? Please always say where material comes from. I presume you copied that example, but in the process you have unfortunately lost the indentation. Indentation is important, and I am not simply being fussy; otherwise it becomes so much more difficult to understand which part of the code is which.
Fred Masen wrote:Here's the Gaddis example from the book . . .
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton