-
Java集合框架查看全部
-
Entry是Map的内部类,也可说Entry包含Key和Value查看全部
-
检查异常查看全部
-
非检查异常查看全部
-
List接口中的set()方法进行对应位置的元素的修改查看全部
-
Iterator<Course> it = coursesToSelect.iterator(); while (it.hasNext()){ .... }//遍历的元素查看全部
-
Arrays.asList()静态方法可以将数组变为List查看全部
-
基本类型不能用作泛型,需用他们的包装类查看全部
-
Calendar c = Calendar.getInstance(); 千万不要加new查看全部
-
SimpleDateFormat类 format() 方法将时间转换为指定的格式的字符串. parse() 方法将文本转换为日期.查看全部
-
迭代器不存储元素,它依赖于集合查看全部
-
//基本类型转为字符串 int i=10; String str=Integer.toString(i);//方法一 String str2=Integer.valueOf(c);//方法二 String str3=c+"";//方法三 //将字符串转化为基本字符类型 String sstr="8"; Double d=Double.parseDouble(sstr); int e=Integer.valueOf(str);查看全部
-
public class Student{ public int id; public String name; public Set courses; public Student(int id,String name){ this.id = id; this.name = name; this.courses = new HashSet(); } }查看全部
-
public class Course{ public int id; public String name; public Course(int id,String name){ this.id = id; this.name = name; } }查看全部
-
Arraylist的底层是数组查看全部
举报
0/150
提交
取消