?? contains.java
字號:
import java.util.*;
class Contains
{
public static void main(String[] args)
{
//
Vector v = new Vector(Arrays.asList(
new Object[]{"dog", null, new Integer(7)}));
System.out.println( v.contains("dog") ); // true
System.out.println( v.contains(null) ); // true
System.out.println( v.contains("pig") ); // false
// This shows that although the two Integer objects are different,
// they are considered the same according to their equals() method.
System.out.println( v.contains(new Integer(7)) );// true
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -