摘要:
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; ... 阅读全文
摘要:
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;... 阅读全文
摘要:
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... 阅读全文
摘要:
http://blog.csdn.net/bigheadsheep/article/details/43527247 https://www.cnblogs.com/Brambling/p/6754993.html 唯一索引 聚集索引 非聚集索引 阅读全文
摘要:
public class TTest { public static void main(String[] args) { // TODO Auto-generated method stub } /** * Java泛型中和的区别 * * 限制元素上限 * * 限制下限 ... 阅读全文
摘要:
import java.util.Arrays; import java.util.Comparator; public class LengthComparator implements Comparator { @Override public int compare(String first, String second) { System.out.pr... 阅读全文
摘要:
package interfacepage; import java.sql.Date; public class CloneTest { /** * @author:lixh */ public static void main(String[] args) { // TODO Auto-generated method stub ... 阅读全文
摘要:
如果是想通过严格的类名判断就使用 getClass 如果是子父类某些属性相等就视为相等就使用instanceOf /* public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null ||... 阅读全文
摘要:
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 ... 阅读全文
摘要:
public interface PersonO { /*default String getName(){ return getClass().getName(); }*/ int size(); default boolean max(){ return size() == 0; } Str... 阅读全文