merge
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
package com.xwbing.demo;
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 项目名称: boot-module-demo
|
||||
* 创建时间: 2018/1/23 14:45
|
||||
@@ -13,13 +8,5 @@ import java.util.Map;
|
||||
*/
|
||||
public class Ademo {
|
||||
public static void main(String[] args) {
|
||||
Map<String, String> aa = new HashMap<>();
|
||||
aa.put(null, "aa");
|
||||
String s = aa.get(null);
|
||||
System.out.println(s);
|
||||
JSONArray jsonArray = JSONArray.parseArray("[1,2]");
|
||||
System.out.println("");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -19,6 +19,8 @@ public class CollectionDemo {
|
||||
int[] arr1 = new int[4];
|
||||
int[] arr2 = new int[]{1, 3, 5, 7};
|
||||
int[] arr3 = {12, 3, 5, 6, 2, 8, 9, 4};
|
||||
//输出字符串
|
||||
System.out.println(Arrays.toString(arr3));
|
||||
|
||||
for (int i = 0; i < arr3.length - 1; i++) {//选择排序
|
||||
for (int j = i + 1; j < arr3.length; j++) {
|
||||
|
||||
Reference in New Issue
Block a user