Collection 接口 宏观图 快速使用 import java.util.*; public class Demo { public static void main(String[] args) throws Exception{ Collection collection = new Ar Read More
类的初始 类中包括:属性,方法。 快速使用 我们都是人,而人的共同特点有很多。 比如:名字,年龄,性别,吃饭,睡觉。。。 // 定义类 public class Person { // 定义属性 String name, gender; int age; // 构造方法 public Person( Read More
声明变量 class demo{ public static void main(String[] args){ // 先声明,后赋值 int a; a = 1; // 直接赋值 int b = 2; // 多个声明 int c,d = 4, e=5; c = 3; } } 基本数据类型 整数 by Read More