- 博客(3)
- 收藏
- 关注
原创 java集合ArrayList ,HashSet
ArrayList 有序可重复 HashSet 无序不可重复 private void testCol() { Collection col = new ArrayList(); col.add(1); col.add(3); col.add(3); col.add(2); /*col.add(3); col.remove(2);*/ // ...
2015-04-05 13:38:45
103
原创 .length与.length()使用
java中的length属性是针对数组说的,比如说你声明了一个数组,想知道这个数组的长度则用到了length这个属性. java中的length()方法是针对字符串String说的,如果想看这个字符串的长度则用到length()这个方法....
2015-04-05 13:18:09
139
No enclosing instance of type test is accessible. Must qualify the allocation wi
[size=large][size=x-small]No enclosing instance of type test is accessible. Must qualify the allocation with an enclosing instance of type test (e.g. x.new A() where x is an instance of test).[/size][...
2015-04-02 17:07:10
483
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人