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.
This is a sample exam question that I struggling with: Write a boolean method named digit that returns true if the value of its char type parameter is a digit (one of "0", "1", ., "9") and returns false otherwise. Thanks, Roger
Okay, let's see what you've got so far. For example, have you figured out the method signature yet? The method signature includes the name of the method, the type of value returned (if any) and the names and types of the parameters. Have you gotten that far? If so, show us. Next, can you think what sort of logic you might want to use to do what you need to do? Can you write out in pseudo-code (which is just English) the steps you would take to process this function? I hope I don't sound pedantic here. What I'm trying to do is walk you through the basic steps of analysis and design, which you need to do before you ever write a line of code. Joe