- 博客(3)
- 收藏
- 关注
原创 冒泡排序的几种写法
1.public static void bubbleSort(int[] arr){ for (int i = arr.length; i > 0; i--) { //外层循环移动游标 for(int j = 0; j < i && (j+1) < i; j++){ //内层循环遍历游标及之后(或之前)的元素 ...
2018-06-13 19:17:31
511
原创 有关StringBuffer的赋值
先看代码public class StringBuffera { public static void main(String[] args) { StringBuffer bf1 = new StringBuffer("hello"); StringBuffer bf2 = new StringBuffer("java"); test(bf1,bf2); System.out.print...
2018-06-04 19:48:16
3583
原创 出现这个错误的解决方法No enclosing instance of type 类名 is accessible. Must qualify the allocation with
No enclosing instance of type 类名 is accessible. Must qualify the allocation with an enclosing instance of type 类名(e.g. x.new A() where x is an instance of 类名).引用https://www.cnblogs.com/runnigwolf/p/55...
2018-05-30 21:31:20
32154
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人