I need a little help with converting an Obj-C code to Java code. Obj-C code :
NSArray * tmp = [_user.userDbAdapter executeQuery:query];
if ([[[tmp objectAtIndex:0] objectForKey:@"mediaType"] intValue] == M_COLLECTION_ANTHEM)
{
mtype = SECTYPE_AUDIO;
}
Java code :
ArrayList<Object> tmp = aUser.userDbAdapter.executeQuery(query);
if(tmp.get(0)){
//code
}
Is this the right way to do this...and how can I get objectForKey in Java ? Thanks in advance!