Search:

Type: Posts; User: mperemsky

Search: Search took 0.16 seconds.

  1. Re: Get int value from char, char pulled from String

    Try the following modification
  2. Replies
    2
    Views
    427

    Re: strings problem

    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...
  3. Replies
    1
    Views
    461

    Re: Array and loop

    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...
  4. Replies
    2
    Views
    1,779

    Re: printing distinct numbers with arrays

    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...
  5. Replies
    1
    Views
    279

    Re: Infinite Loop in my code.

    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...
  6. Replies
    3
    Views
    350

    Re: How can I debug this code?

    Use an IDE (NetBeans, Eclipse) and step through during the execution of the code.
  7. [SOLVED] Re: Syntax error on token "extends", throws expected

    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...
  8. Replies
    2
    Views
    691

    Re: Help with my homework?

    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)....
  9. Re: Understanding Abstract Classes... am I getting this?

    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...
Results 1 to 9 of 9