Try the following modification
Type: Posts; User: mperemsky
Try the following modification
1. loop though both words at the same time. Once you encounter a letter that is different print out the substring of the first word.
2. Loop through the string. Remember the last character. If the...
There are a couple of minor issues.
1. You main method is defined incorrectly, it should be
public static void main(String [] args)
2. Create an instance of the LetterInventory object in...
checkArray checks to see if the number already exists, but it never does anything to the number in the array. Do you want to keep the number in the array? Currently checkArray just returns whether or...
Your if statements in nextStep() need to be updated
//Moving North: [x-1][y]
//Moving SouthEast [x+1][y+1]
onEdge should be comparing to 9 to see if it on an outer edge, not 10. The index...
Use an IDE (NetBeans, Eclipse) and step through during the execution of the code.
A method cannot extend a class, only a class can extend a class or an interface can extend an interface
public class MyClass extends SomeClass { }
public class MyClass implements...
You are not generating a random number, you are guessing the random number that the user has thought of in their head. Your objective is to get the correct answer within 10 guesses (binary search)....
Yes, the usage is correct. One side note, you do not need to prefix the calls with "super" when you call getName() and setHP() as there is only one instance of these methods. It would make more sense...