摘要:
为什么使用泛型? 举个例子: public class GenericTest { public static void main(String[] args) { List list = new ArrayList(); list.add("qqyumidi"); list.add("corn") 阅读全文
摘要:
Java 基本类型和对象类型的区别 基本类型: int long byte float double char boolean short 对象类型: Integer Long Byte Float Double Character Boolean Short 包装类: java中有时候运算时两个对 阅读全文
摘要:
Java对象及对象引用 首先定义一个简单的类: class User{ int userId; String userName; } 我们在创建对象时,通常会写: User user = new User(); 这个操作包含了四个动作。 1)右边的"new User",是以User为模板,在堆(he 阅读全文
摘要:
tar -zcvf /home/xahot.tar.gz /xahot tar -zcvf 打包后生成的文件名全路径 要打包的目录 例子:把/xahot文件夹打包后生成一个/home/xahot.tar.gz的文件。 zip 压缩方法: 压缩当前的文件夹 zip -r ./xahot.zip ./* 阅读全文