提交 f72ed8ce 编写于 作者: M Mars Liu

restructure

上级 fdb2a976
{
"type": "code_options",
"author": "熊克斐",
"source": "collection.md",
"exercise_id": "2093199b35de4a12af7f61f78d53cf03",
"notebook_enable": false
}
\ No newline at end of file
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
"node_id": "java-73271e880f0843f69437427bfc557ff2", "node_id": "java-73271e880f0843f69437427bfc557ff2",
"keywords": [], "keywords": [],
"children": [], "children": [],
"export": [], "export": ["collection.json"],
"title": "Collection接口" "title": "Collection接口"
} }
\ No newline at end of file
{
"type": "code_options",
"author": "熊克斐",
"source": "list.md",
"exercise_id": "",
"notebook_enable": false
}
\ No newline at end of file
...@@ -27,6 +27,6 @@ ...@@ -27,6 +27,6 @@
} }
} }
], ],
"export": [], "export": ["iteratable.json"],
"title": "Collection集合遍历" "title": "Collection集合遍历"
} }
\ No newline at end of file
{
"type": "code_options",
"author": "熊克斐",
"source": "iteratable.md",
"exercise_id": "8dfe5c09ae5b4ab28cdd7e5bbd47e1f5",
"notebook_enable": false
}
\ No newline at end of file
...@@ -27,6 +27,6 @@ ...@@ -27,6 +27,6 @@
} }
} }
], ],
"export": [], "export": ["set.json"],
"title": "Set接口" "title": "Set接口"
} }
\ No newline at end of file
{
"type": "code_options",
"author": "熊克斐",
"source": "set.md",
"exercise_id": "cc8434cfc00d4934a805ecafb3a22085",
"notebook_enable": false
}
\ No newline at end of file
...@@ -41,6 +41,6 @@ ...@@ -41,6 +41,6 @@
} }
} }
], ],
"export": [], "export": ["map.json"],
"title": "Map接口" "title": "Map接口"
} }
\ No newline at end of file
{
"type": "code_options",
"author": "熊克斐",
"source": "map.md",
"exercise_id": "140f1304905a4bffbd480b3361ee3005",
"notebook_enable": false
}
\ No newline at end of file
{
"type": "code_options",
"author": "熊克斐",
"source": "collection.md",
"exercise_id": "302ce900fc934979af1e476a6964034c",
"notebook_enable": false
}
\ No newline at end of file
...@@ -19,6 +19,6 @@ ...@@ -19,6 +19,6 @@
} }
} }
], ],
"export": [], "export": ["collection.json"],
"title": "Java集合框架" "title": "Java集合框架"
} }
\ No newline at end of file
{
"node_id": "java-61ba5b89d4284c1b9d59436bce805640",
"keywords": [],
"children": [
{
"Collections工具类": {
"keywords": [],
"children": [],
"node_id": "java-a07f943448184bf985a9f929567ed94e",
"title": "Collections工具类"
}
},
{
"Arrays工具类": {
"keywords": [],
"children": [],
"node_id": "569d5e11c4fc5de7844053d9a733c5e8",
"title": "Arrays工具类"
}
}
],
"export": [],
"title": "常用工具类"
}
\ No newline at end of file
# 工具类
如果想实现1~10之间的随机数,下面哪个代码可以实现:
## 答案
A
## 选项
### A
```java
Random random = new Random();
int result = random.nextInt(10);
result = result + 1;
```
### B
```java
Random random = new Random();
int result = random.nextInt(1);
result = result + 10;
```
### C
```java
int max = 10;
int min = 1;
Random random = new Random();
int result = random.nextInt(min) % (max - min + 1) + min;
System.out.println(result);
```
### D
以上都是
{
"node_id": "java-2d3c1265286d4b58a87650a633ba2373",
"keywords": [],
"children": [
{
"聚合操作简介": {
"keywords": [],
"children": [],
"node_id": "java-4c3e7ab968f04393af0c008d7ab6fcc7",
"title": "聚合操作简介"
}
},
{
"创建Stream流对象": {
"keywords": [],
"children": [],
"node_id": "569d5e11c4fc5de7844053d9a733c5e8",
"title": "创建Stream流对象"
}
},
{
"Stream流的常用方法": {
"keywords": [],
"children": [],
"node_id": "569d5e11c4fc5de7844053d9a733c5e8",
"title": "Stream流的常用方法"
}
},
{
"Parallel Stream(并行流)": {
"keywords": [],
"children": [],
"node_id": "569d5e11c4fc5de7844053d9a733c5e8"
}
}
],
"export": [],
"title": "聚合操作"
}
\ No newline at end of file
{
"node_id": "java-b65776c30f4e4aaf99d8bc8b66855e7c",
"keywords": [],
"children": [],
"export": [],
"title": "集合框架中的接口"
}
\ No newline at end of file
...@@ -377,69 +377,6 @@ ...@@ -377,69 +377,6 @@
] ]
} }
}, },
{
"常用工具类": {
"node_id": "java-61ba5b89d4284c1b9d59436bce805640",
"keywords": [],
"children": [
{
"Collections工具类": {
"keywords": [],
"children": [],
"node_id": "java-a07f943448184bf985a9f929567ed94e",
"title": "Collections工具类"
}
},
{
"Arrays工具类": {
"keywords": [],
"children": [],
"node_id": "569d5e11c4fc5de7844053d9a733c5e8",
"title": "Arrays工具类"
}
}
]
}
},
{
"聚合操作": {
"node_id": "java-2d3c1265286d4b58a87650a633ba2373",
"keywords": [],
"children": [
{
"聚合操作简介": {
"keywords": [],
"children": [],
"node_id": "java-4c3e7ab968f04393af0c008d7ab6fcc7",
"title": "聚合操作简介"
}
},
{
"创建Stream流对象": {
"keywords": [],
"children": [],
"node_id": "569d5e11c4fc5de7844053d9a733c5e8",
"title": "创建Stream流对象"
}
},
{
"Stream流的常用方法": {
"keywords": [],
"children": [],
"node_id": "569d5e11c4fc5de7844053d9a733c5e8",
"title": "Stream流的常用方法"
}
},
{
"Parallel Stream(并行流)": {
"keywords": [],
"children": [],
"node_id": "569d5e11c4fc5de7844053d9a733c5e8"
}
}
]
}
},
{ {
"Java集合框架": { "Java集合框架": {
"node_id": "java-860b3800347942d2857795251974730b", "node_id": "java-860b3800347942d2857795251974730b",
...@@ -464,13 +401,6 @@ ...@@ -464,13 +401,6 @@
] ]
} }
}, },
{
"集合框架中的接口": {
"node_id": "java-b65776c30f4e4aaf99d8bc8b66855e7c",
"keywords": [],
"children": []
}
},
{ {
"链表": { "链表": {
"node_id": "java-bfbb4319eb60496583ace9aca561c7ab", "node_id": "java-bfbb4319eb60496583ace9aca561c7ab",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册