KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Basically, I've been doing the following to retrieve Java Instance Fields (in this case, an int) and setting it to a new value like the following: jclass cls = env->GetObjectClass(obj); jfieldID fid = env->GetFieldID(cls, "myVariable", "I"); env->SetIntField(obj, fid, (jint)2012); However, I'd like to do this for an individual int element in a java int array such that: jclass cls = env->GetObjectClass(obj); jfieldID fid = env->GetFieldID(cls, "myVariableArray", "[I"); PSUDOCODE: <"SET myVariableArray[0] = 2013" ... Is there a method for this?> Is there such a thing?
Tags (comma-separated)
Save Edits
Cancel