05 2016 档案
摘要://指定长度为10 String [] arr = new String[10]; //两种没什么区别,只是上面可读性比较好 String arr[] = new String[10]; //直接初始化数组 String[] arr = {"a","b"}; //先定义一个数组 String [] arr = null; //赋值数组的第一个值 arr[0] = "a";
阅读全文
摘要:md 创建文件夹 rd 删除文件夹 copy con +name 新建文件 并编辑 按Ctrl+z 结束编辑edit name 编辑内容
阅读全文
摘要:java 关键字 final 意味 不可改变 1.final类 不能被继承 2.final方法 不允许被覆盖 3.final变量 一旦给定 不法改变,可以为空白
阅读全文
摘要:the methon of automatically(自动) executing(执行) in class instance(类实例化) is called the construction method its name is the same as the name of class publ
阅读全文
摘要:an abstarct class cannot be instatiatede(实例化)
阅读全文
摘要:The get and set method is used to modify the private(私有数据 )。 If a data has been setting as a private , then it cannt be called by other classes or cha
阅读全文
摘要:Use the final statement of class cannot be inherited(继承) Use the final statement of method cannot be recovered by its subclass(子类) use the final state
阅读全文
摘要:String name = "张三你好,我不是大是大多数"; char name1 = name.charAt(1); name1="三” charAt(x) 提取 字符串下标x对应的字符 name.indexOf("你")=2 indexOf (“字符 ”)提取目标字符串中 第一次出现某字符的下标
阅读全文
摘要:String name1 ="zhangsan"; String name2 = new String( "zhangsan"); ==比较的是指向对象 (name1 ==name2)为 false equals 比较的是内容 name1.equals(name2) 为 ture
阅读全文
摘要:1. String name1 = "张三"; 2.String name =new String("张三"); 第一种方法 如果再创建一个 name2 ="张三” name1 和name2 会指向同一个 字符串“张三” 第二种方法 name2 会创建一个新的对象
阅读全文
摘要:{} 1.普通代码块 { 先出现先调用 } 2.构造代码块 { 在创建对象时被调用,而且优先 } 3.静态代码块 { 调用类时 优先被调用 ,但只能运行一次 }
阅读全文

浙公网安备 33010602011771号