This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
The moreData method does not seem to use any parameters, so I would remove the argument. If you do leave it in, then the type needs to be specified -- which is what the compiler is complaining about. (Note that the method is called with a String.)
The isLeap method also requires a type for its argument. (And the first println in that method is missing a closing parenthesis.)
Now, here's a big mistake that everyone makes at least once: A single equals sign is used for assignment (=). Two equals signs are required for comparison (==). [ February 04, 2006: Message edited by: marc weber ]
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org
Joined: Feb 03, 2005
now I get the logical errors. I thought you were joking.