随笔分类 - Java
摘要:1. How to create generic array List<Integer>[] array = new List[len]; import java.lang.reflect.Array; ArrayList<Integer>[] array = (ArrayList<Integer>
阅读全文
摘要:多说无益,直接看代码。public class MyTest { public static void main(String[] args) { Test t1 = new Test(); System.out.println("------------")...
阅读全文
摘要:In C# we have ref and out, while in Java we don't.To do something similar to ref, there are normally 4 ways.Check this out:http://stackoverflow.com/qu...
阅读全文
摘要:Normal class(Non-nested class) can only be public, abstract or final.For nested classes, static is allowed.Nested classes(private, public, protected) ...
阅读全文

浙公网安备 33010602011771号