|[eol] problem with creating a native java String [message #590459]
||Tue, 06 July 2010 13:44
| m kranz
Registered: January 2010
i was trying to create a java.lang.String as native type in eol (as shown in the book, listing 3.8 ), but it does not seem to work. i tried things like the following, but it always tells me that the methods (replaceAll, indexOf etc.) are not found.
var code = new Native("java.lang.String");
var index = code.indexOf("createContents()");
has anyone an idea what i'm doing wrong?
Powered by FUDForum
. Page generated in 0.16889 seconds