ok thanks for that, works now to an extent.
Just for reference could I change a string to an Item?
> If you can change Item's source code, you can add this method :
> public String toString()
[quoted text clipped - 5 lines]
> http://javalessons.com Paul Hamaker, SEMM
> Teaching ICT since 1987
Fred Kleinschmidt - 05 Jan 2007 19:29 GMT
Don't top-post, and don't remove the reference to the original question.
> ok thanks for that, works now to an extent.
> Just for reference could I change a string to an Item?
Just create a constructor that takes a string as its argument.
It's up to you to determine what it means to convert a string
into an Item, and that is what this constructor should do.

Signature
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project
steve - 05 Jan 2007 22:44 GMT
> ok thanks for that, works now to an extent.
> Just for reference could I change a string to an Item?
[quoted text clipped - 8 lines]
>> http://javalessons.com Paul Hamaker, SEMM
>> Teaching ICT since 1987
you need to get into the mind set of using the correct terms.
consider Using the word "Object"
Steve