Cross posted at: MyString Help
Type: Posts; User: Norm
Cross posted at: MyString Help
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...
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...
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;
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?
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
...
Please explain. If you are getting error messages, please copy the full text and paste here.