}
public JInstance toJString(String aString)
{
JClass theClass = getClass("java/lang/String");
SimpleInstance theInstance = new SimpleInstance(theClass);
JField fOffset = theClass.getField("offset");
JField fCount = theClass.getField("count");
JField fValue = theClass.getField("value");
JField fHash = theClass.getField("hash");
theInstance.putFieldValue(fOffset, JInt._0);
theInstance.putFieldValue(fCount, new JInt(aString.length()));
theInstance.putFieldValue(fHash, new JInt(aString.hashCode()));
JArray theValue = new SimpleArray(aString.length());
for(int i=0;i<aString.length();i++) theValue.set(i, new JChar(aString.charAt(i)));
theInstance.putFieldValue(fValue, theValue);
return theInstance;
}