摘要: package com.test7; public class test7 { public static void main(String[] args) { Son son = new Son(1000, "张三"); /** * 打印显示 Father的构造函数1000 张三 Son的构造函数1000 张三 */ } } class Father { private int userId; 阅读全文
posted @ 2019-09-19 18:45 深南大道 阅读(6004) 评论(0) 推荐(0)
摘要: package com.test7; public class test7 { public static void main(String[] args) { /** * 1、equals()比较的是对象的内容(区分字母的大小写格式)是否相等 equals()用于判断值内容 * 2、“==”比较两个对象时,比较的是两个对象的内存地址... 阅读全文
posted @ 2019-09-19 18:33 深南大道 阅读(717) 评论(0) 推荐(0)
摘要: DELIMITER $$ DROP PROCEDURE IF EXISTS create_calendar $$ CREATE PROCEDURE create_calendar (s_date DATE, e_date DATE) BEGIN -- 生成一个日历表 SET @createSql = 'CREATE TABLE IF NOT EXISTS calendar_custom ( `da 阅读全文
posted @ 2019-09-19 16:55 深南大道 阅读(4740) 评论(0) 推荐(0)
摘要: package com.test6; public class test5 { public static void main(String[] args) { int[] arr = {1, 2, 31, 4, 5, 6, 7, 88, 9, 11, -1}; float[] arr2 = {1, 2, 31, 4, 5, 6, 7, 88.88f, 9, 11.1f, -1f}; ArrayH 阅读全文
posted @ 2019-09-19 14:31 深南大道 阅读(6969) 评论(0) 推荐(0)
摘要: package com.test6; import java.io.FileReader; import java.io.IOException; /** * try...catch...finally */ public class test5 { public static void main(String[] args) { FileReader fr = ... 阅读全文
posted @ 2019-09-19 14:05 深南大道 阅读(205) 评论(0) 推荐(0)
摘要: Ctrl+Shift + Enter,语句完成 “!”,否定完成,输入表达式时按 “!”键 Ctrl+E,最近的文件 Ctrl+Shift+E,最近更改的文件 Shift+Click,可以关闭文件 Ctrl+[ OR ],可以跑到大括号的开头与结尾 Ctrl+F12,可以显示当前文件的结构 Ctrl+F7,可以查询当前元素在当前文件中的引用,然后按 F3 可以选择 Ctrl+N,可以快速打开类 C 阅读全文
posted @ 2019-09-19 11:18 深南大道 阅读(827) 评论(0) 推荐(0)
摘要: package com.test5; import java.lang.reflect.Field; import java.lang.reflect.Method; /** * Java泛型和反射机制(泛型的好处 代码安全简单,自动装箱拆箱,提高代码的重用率) */ public class test5 { public static void main(String[] args) { Emp 阅读全文
posted @ 2019-09-19 11:15 深南大道 阅读(273) 评论(0) 推荐(0)
摘要: package com.test4; import java.util.*; /** * JAVA集合ArrayList,Vector,HashMap,HashTable等使用 */ public class test4 { public static void main(String[] args) { //ArrayList异步,线程不安全,性能高 Vect... 阅读全文
posted @ 2019-09-19 09:47 深南大道 阅读(270) 评论(0) 推荐(0)