Java Notes(3) summarize

Input:

map: map.put(key,value);

set: set.add(object);

list: list.add(object);

Class type and Primitive type:

Used in map ,list:

int -> Integer, boolean -> Boolean, char -> Character

Contains:

set.contains(object);

length:

list: list.size();

sort:

array: Arrays.sort(int[]);

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s