views:

56

answers:

1
        item = [[NSMutableDictionary alloc] init];
    [[self item] setObject:self.currentDay forKey:@"day"];

This is the code for iphone wat is its equivalent in java

+2  A: 
Map<String, Object> item = new HashMap<String, Object>();
item.put( "day", currentDay );
kovpas
wow.. tanks for the answer. its very helpful for someone new to android like me ... tanks.
suslovjb
@suslovjb: This is Java, actually, nothing specific to Android here :)
kovpas
@suslovjb: you can accept the answer as well.
bhups
@kovpas sorry for accepting it late... ass soon as i got the answer i clicked the tick mark but accept can be done only after 8 minutes... @kovpas ya i know.. i am new to java as well..
suslovjb
@suslovjb no problem :)
kovpas