匿名内部类 创建对象和实现类的定义同步完成,必须实现一个接口或者继承一个类 package how2j; //根据要求找到相关信息的学生对象 //java中不允许函数回调,所以将函数方放在类或者接口中,所以在使用时传的是对象,或者接口实现类产生的对象 //lambda表达式是匿名内部类的简单写法 p ...
分类:
其他好文 时间:
2020-07-19 15:55:37
阅读次数:
53
1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace linq延迟状态终止 ...
分类:
其他好文 时间:
2020-07-19 11:32:54
阅读次数:
69
效果如下 实现代码 public class test7FamilyAccount{ public static void main(String[]args){ java.util.Scanner input = new java.util.Scanner(System.in); boolean ...
分类:
编程语言 时间:
2020-07-19 11:30:27
阅读次数:
72
JavaSE基础 1.对象实例化 (1)Class.forName(“类的全名称”); (2)Person person = new Person();2.类的重载: 类名相同,形参列表不同(类型,顺载序,个数),system.out.println();也是方法重3.不定长参数,本质是一个数组形式 ...
分类:
编程语言 时间:
2020-07-18 22:48:07
阅读次数:
108
学习内容:包装类 1.Integer型包装类 代码实现: public class Integer包装类 { public static void main(String[] args) { // TODO 自动生成的方法存根Integer a1=new Integer(15);//创建方法一Int ...
分类:
编程语言 时间:
2020-07-18 22:44:51
阅读次数:
81
* branch master -> FETCH_HEAD error: insufficient permission for adding an object to repository database .git/objects fatal: failed to write object fa ...
分类:
数据库 时间:
2020-07-18 22:35:47
阅读次数:
88
VS自动按日期生成版本号,修改解决方案文件 <PropertyGroup> <TargetFramework>netstandard2.1</TargetFramework> <Revision>$([System.DateTime]::Now.ToString("yyyy.MM.dd.HHmm") ...
分类:
其他好文 时间:
2020-07-18 22:29:46
阅读次数:
113
char 字符 char代表一个Unicode字符,它是System.Char的别名 char someChar = 'a';//定义了一个字符 char newLine= '\n';//这是一个换行符 System.Char定义了一组静态方法: ToUpper 将指定的字符转换为等效的大写形式 T ...
long startTime=System.currentTimeMillis(); //获取开始时间 long endTime=System.currentTimeMillis(); //获取结束时间 System.out.println("程序运行时间: "+ (endTime - startT ...
分类:
编程语言 时间:
2020-07-18 21:51:26
阅读次数:
83
using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Data.SqlClient; using System.Reflection; usi ...
分类:
数据库 时间:
2020-07-18 16:11:44
阅读次数:
118