Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    13
    Views
    1,682

    Re: All help would be much appreciated!!

    Cross posted at: MyString Help
  2. Replies
    13
    Views
    1,682

    Re: All help would be much appreciated!!

    If you have definitions of what the methods should do, then you need to design the code for each one before you code it.
    Pick one, design it, code it, compile it test it. When it works, move on to...
  3. Replies
    13
    Views
    1,682

    Re: All help would be much appreciated!!

    Please define what the method is supposed to do. What arguments does it receive, what processing does it do and what does it return?
    If there is more than one method, do the above steps for each...
  4. Replies
    13
    Views
    1,682

    Re: All help would be much appreciated!!

    To create a MyString object you need to use the new statement:
    MyString myStr = new MyString(<SOME ARGS HERE?>);
    then at the end of the method:
    return myStr;
  5. Replies
    13
    Views
    1,682

    Re: All help would be much appreciated!!

    You posted 8 lines. Which one is line 98?

    The method is defined to return a MyString object. Is that what you want it to do?
    Where is there a MyString object that can be returned?
  6. Replies
    13
    Views
    1,682

    Re: All help would be much appreciated!!

    Can you copy the full text of the compiler's error messages? I would expect them to look like this:


    TestSorts.java:138: cannot find symbol
    symbol : variable var
    location: class TestSorts
    ...
  7. Replies
    13
    Views
    1,682

    Re: All help would be much appreciated!!

    Please explain. If you are getting error messages, please copy the full text and paste here.
Results 1 to 7 of 7