I am trying out some of the codes in the book Jython Essentials.
Specifically I need to use lists of strings (sentences) a lot.
So I typed one of the codes in the book but got an error message:
>> import jarray
>> jarray.array(['crystal', 'ball'],java.lang.String)
Traceback ...
File "<console>", line 1, in ?
NameError: java
Other methods in the same page are working such as:
>> L=['j','y','z']
>> jarray.array(L,'c')

It seems that there is some problem with using a
wrapped object (java.lang.String). The book came out in 2002 and Jython's treatment of wrappers might have changed since then. Can someoen give me help with this?
Thank you very much.