Iphone代码和android

xyd*_*dev 0 java iphone android dictionary objective-c

        item = [[NSMutableDictionary alloc] init];
    [[self item] setObject:self.currentDay forKey:@"day"];
Run Code Online (Sandbox Code Playgroud)

这是iphone wat的代码,它在java中是等价的

kov*_*pas 5

Map<String, Object> item = new HashMap<String, Object>();
item.put( "day", currentDay );
Run Code Online (Sandbox Code Playgroud)