上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: package com.yh.day02.arrays; import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;i 阅读全文
posted @ 2019-12-22 11:23 动起来mygod 阅读(246) 评论(0) 推荐(0)
摘要: package com.yh.day02.arrays; import java.io.File; public class ListTest01 { public static void main(String[] args) { File file=new File("E:/upload/tes 阅读全文
posted @ 2019-12-22 10:44 动起来mygod 阅读(130) 评论(0) 推荐(0)
摘要: package com.yh.day02.arrays; import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Date; /** * * @author sinosoft * */pub 阅读全文
posted @ 2019-12-21 18:13 动起来mygod 阅读(168) 评论(0) 推荐(0)
摘要: package com.yh.day02.arrays; public class Test01 { public static void main(String[] args) { int []a=new int[]{10,11,2,13,1,4,15,16,17,18,19}; int sy=b 阅读全文
posted @ 2019-12-21 17:26 动起来mygod 阅读(118) 评论(0) 推荐(0)
摘要: public class Test01{ public static void main(String []args){ int []a=new int[3]; a[0]=10; a[1]=20; a[2]=30; for(int i=0;i<a.length;i++){ System.out.pr 阅读全文
posted @ 2019-12-20 15:44 动起来mygod 阅读(115) 评论(0) 推荐(0)
摘要: public class Test01{ public static void main(String[] args){ int i=10,j=0;//java.lang.ArithmeticException: System.out.println(i/j); System.out.println 阅读全文
posted @ 2019-12-19 21:21 动起来mygod 阅读(147) 评论(0) 推荐(0)
摘要: select * from 表 where 查询条件 group by 字段分组 having 再次查询条件 order by 字段排序 聚合函数就又称为组函数:count(字段) sum(字段) avg(字段平均) max(字段) min(字段) 函数:lower()全部变成小写 upper()全 阅读全文
posted @ 2019-12-16 19:05 动起来mygod 阅读(552) 评论(0) 推荐(0)
摘要: 继承extends java只支持单继承,但是可以间接继承别的类,默认继承Object 继承的作用:代码重用,重要的作用是:方法的覆盖override和多态机制。 多态的前提是继承 向上转型:等号右边是子类 左边是父类 向下转型:等号右边是父类 左边是子类 向上转型:父类引用指向了(等号左边)子类的 阅读全文
posted @ 2019-12-14 23:41 动起来mygod 阅读(180) 评论(0) 推荐(0)
摘要: package com.yh.test02; public class Test { public static void main(String[] args) { Test.method1(); method1(); Test t=new Test(); t.method2(); t.metho 阅读全文
posted @ 2019-12-13 16:55 动起来mygod 阅读(1049) 评论(0) 推荐(0)
摘要: this是一个关键字代表的意思是:这个 this是一个引用,this是一个变量,this变量中保存了内存地址指向了自身,this存储在JVM推内存java对象内部 创建100个java对象,每一个对象都有this,也就是100个不同的this this可以出现在”实例方法“中,this指向当前正在执 阅读全文
posted @ 2019-12-13 10:59 动起来mygod 阅读(178) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页