摘要:
// 调用 mapCode(1L, 2L); // 方法_可以传无限参数 static Long mapCode(Long... n2) { Long sum = 0L; for (Long lo : n2) { sum += lo; } System.out.println(JSON.toJSON 阅读全文
摘要:
public static void main(String[] args) { List<Student> list = new ArrayList<>(); Collections.addAll(list, new Student(1L, "张三"), new Student(2L, "李四") 阅读全文