会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
aLa神灯
snowball
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
12
13
14
15
16
17
18
19
20
···
23
下一页
2018年1月12日
一个for循环实现9*9乘法表
摘要: StringBuffer sb = new StringBuffer(200); for (int i = 1, j = 1; j <= 9; i++) { sb.append(j+"*"+i+"="+i*j+" "); if (i == j) { i = 0; ...
阅读全文
posted @ 2018-01-12 14:38 aLa神灯
阅读(242)
评论(0)
推荐(0)
2018年1月11日
6-3 lambda 表达式
摘要: package interfacepage; import java.awt.event.ActionListener; import java.util.Arrays; import java.util.Comparator; import java.util.stream.Stream; import javax.swing.Timer; import tools.ArrayTools;...
阅读全文
posted @ 2018-01-11 18:41 aLa神灯
阅读(191)
评论(0)
推荐(0)
6-4 内部类
摘要: package innerclass; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Timer; public class InnerClassTest { public static void...
阅读全文
posted @ 2018-01-11 18:40 aLa神灯
阅读(100)
评论(0)
推荐(0)
sqlserver 创建索引
摘要: http://blog.csdn.net/bigheadsheep/article/details/43527247 https://www.cnblogs.com/Brambling/p/6754993.html 唯一索引 聚集索引 非聚集索引
阅读全文
posted @ 2018-01-11 15:22 aLa神灯
阅读(86)
评论(0)
推荐(0)
2018年1月10日
泛型上下限
摘要: public class TTest { public static void main(String[] args) { // TODO Auto-generated method stub } /** * Java泛型中和的区别 * * 限制元素上限 * * 限制下限 ...
阅读全文
posted @ 2018-01-10 18:57 aLa神灯
阅读(83)
评论(0)
推荐(0)
6-3 lambda表达式
摘要: import java.util.Arrays; import java.util.Comparator; public class LengthComparator implements Comparator { @Override public int compare(String first, String second) { System.out.pr...
阅读全文
posted @ 2018-01-10 18:55 aLa神灯
阅读(95)
评论(0)
推荐(0)
2018年1月9日
6-2 对象克隆
摘要: package interfacepage; import java.sql.Date; public class CloneTest { /** * @author:lixh */ public static void main(String[] args) { // TODO Auto-generated method stub ...
阅读全文
posted @ 2018-01-09 23:34 aLa神灯
阅读(106)
评论(0)
推荐(0)
5-2 equal getClass or instanceOf
摘要: 如果是想通过严格的类名判断就使用 getClass 如果是子父类某些属性相等就视为相等就使用instanceOf /* public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null ||...
阅读全文
posted @ 2018-01-09 23:33 aLa神灯
阅读(79)
评论(0)
推荐(0)
6-2 回调
摘要: package interfacepage; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Timer; public class TimerTest implements ActionListener ...
阅读全文
posted @ 2018-01-09 21:11 aLa神灯
阅读(82)
评论(0)
推荐(0)
6-1 接口的默认方法
摘要: public interface PersonO { /*default String getName(){ return getClass().getName(); }*/ int size(); default boolean max(){ return size() == 0; } Str...
阅读全文
posted @ 2018-01-09 10:31 aLa神灯
阅读(107)
评论(0)
推荐(0)
上一页
1
···
12
13
14
15
16
17
18
19
20
···
23
下一页
公告