Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CSDN 技术社区
skill_tree_java
提交
4f75dd86
S
skill_tree_java
项目概览
CSDN 技术社区
/
skill_tree_java
通知
43
Star
8
Fork
4
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
skill_tree_java
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
4f75dd86
编写于
11月 19, 2021
作者:
M
Mars Liu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
for editor
上级
9a0523bd
变更
86
隐藏空白更改
内联
并排
Showing
86 changed file
with
451 addition
and
409 deletion
+451
-409
data/1.Java初阶/1.Java概览/1.编辑Java源代码/HelloWorld.md
data/1.Java初阶/1.Java概览/1.编辑Java源代码/HelloWorld.md
+0
-2
data/1.Java初阶/1.Java概览/2.编译Java程序/app.md
data/1.Java初阶/1.Java概览/2.编译Java程序/app.md
+4
-8
data/1.Java初阶/1.Java概览/3.Java的运行机制/runtime.md
data/1.Java初阶/1.Java概览/3.Java的运行机制/runtime.md
+0
-12
data/1.Java初阶/1.Java概览/4.根据CLASSPATH环境变量定位类/classpath.md
data/1.Java初阶/1.Java概览/4.根据CLASSPATH环境变量定位类/classpath.md
+0
-4
data/1.Java初阶/2.Java的基本语法/1.Java的基本语法格式/config.json
data/1.Java初阶/2.Java的基本语法/1.Java的基本语法格式/config.json
+1
-3
data/1.Java初阶/2.Java的基本语法/2.Java中的注释/config.json
data/1.Java初阶/2.Java的基本语法/2.Java中的注释/config.json
+1
-1
data/1.Java初阶/2.Java的基本语法/3.Java中的关键字/config.json
data/1.Java初阶/2.Java的基本语法/3.Java中的关键字/config.json
+3
-2
data/1.Java初阶/2.Java的基本语法/3.Java中的关键字/keyword.json
data/1.Java初阶/2.Java的基本语法/3.Java中的关键字/keyword.json
+7
-0
data/1.Java初阶/2.Java的基本语法/4.Java中的标识符/config.json
data/1.Java初阶/2.Java的基本语法/4.Java中的标识符/config.json
+0
-8
data/1.Java初阶/2.Java的基本语法/4.Java中的标识符/identifier.md
data/1.Java初阶/2.Java的基本语法/4.Java中的标识符/identifier.md
+0
-38
data/1.Java初阶/3.Java中的变量与常量/2.变量的数据类型/config.json
data/1.Java初阶/3.Java中的变量与常量/2.变量的数据类型/config.json
+1
-1
data/1.Java初阶/4.Java中的运算符/2.逻辑运算符/logic.md
data/1.Java初阶/4.Java中的运算符/2.逻辑运算符/logic.md
+11
-15
data/1.Java初阶/4.Java中的运算符/3.算术运算符/arithmetic.md
data/1.Java初阶/4.Java中的运算符/3.算术运算符/arithmetic.md
+3
-7
data/1.Java初阶/5.选择结构语句/1.if条件语句/config.json
data/1.Java初阶/5.选择结构语句/1.if条件语句/config.json
+1
-1
data/1.Java初阶/5.选择结构语句/1.if条件语句/if.json
data/1.Java初阶/5.选择结构语句/1.if条件语句/if.json
+2
-1
data/1.Java初阶/5.选择结构语句/1.if条件语句/if.md
data/1.Java初阶/5.选择结构语句/1.if条件语句/if.md
+9
-13
data/1.Java初阶/5.选择结构语句/2.switch条件语句/config.json
data/1.Java初阶/5.选择结构语句/2.switch条件语句/config.json
+3
-3
data/1.Java初阶/5.选择结构语句/2.switch条件语句/switch.json
data/1.Java初阶/5.选择结构语句/2.switch条件语句/switch.json
+8
-0
data/1.Java初阶/5.选择结构语句/2.switch条件语句/switch.md
data/1.Java初阶/5.选择结构语句/2.switch条件语句/switch.md
+2
-6
data/1.Java初阶/6.循环结构语句/1.dowhile循环/config.json
data/1.Java初阶/6.循环结构语句/1.dowhile循环/config.json
+3
-3
data/1.Java初阶/6.循环结构语句/1.dowhile循环/dowhile.json
data/1.Java初阶/6.循环结构语句/1.dowhile循环/dowhile.json
+0
-0
data/1.Java初阶/6.循环结构语句/1.dowhile循环/dowhile.md
data/1.Java初阶/6.循环结构语句/1.dowhile循环/dowhile.md
+1
-5
data/1.Java初阶/6.循环结构语句/2.for循环语句/config.json
data/1.Java初阶/6.循环结构语句/2.for循环语句/config.json
+3
-2
data/1.Java初阶/6.循环结构语句/2.for循环语句/for.json
data/1.Java初阶/6.循环结构语句/2.for循环语句/for.json
+8
-0
data/1.Java初阶/7.集合/1.Collection接口/collection.md
data/1.Java初阶/7.集合/1.Collection接口/collection.md
+1
-5
data/1.Java初阶/7.集合/1.Collection接口/config.json
data/1.Java初阶/7.集合/1.Collection接口/config.json
+1
-1
data/1.Java初阶/7.集合/10.树集/config.json
data/1.Java初阶/7.集合/10.树集/config.json
+1
-1
data/1.Java初阶/7.集合/10.树集/treeset.md
data/1.Java初阶/7.集合/10.树集/treeset.md
+1
-5
data/1.Java初阶/7.集合/11.映射/config.json
data/1.Java初阶/7.集合/11.映射/config.json
+1
-1
data/1.Java初阶/7.集合/11.映射/map.md
data/1.Java初阶/7.集合/11.映射/map.md
+2
-3
data/1.Java初阶/7.集合/12.遗留的集合/legacy.md
data/1.Java初阶/7.集合/12.遗留的集合/legacy.md
+1
-3
data/1.Java初阶/7.集合/13.编写equals和hashCode/config.json
data/1.Java初阶/7.集合/13.编写equals和hashCode/config.json
+1
-1
data/1.Java初阶/7.集合/13.编写equals和hashCode/equals.md
data/1.Java初阶/7.集合/13.编写equals和hashCode/equals.md
+6
-10
data/1.Java初阶/7.集合/13.编写equals和hashCode/hashCode.md
data/1.Java初阶/7.集合/13.编写equals和hashCode/hashCode.md
+1
-4
data/1.Java初阶/7.集合/14.使用TreeMap/config.json
data/1.Java初阶/7.集合/14.使用TreeMap/config.json
+1
-1
data/1.Java初阶/7.集合/14.使用TreeMap/treemap.md
data/1.Java初阶/7.集合/14.使用TreeMap/treemap.md
+1
-5
data/1.Java初阶/7.集合/15.使用Properties/config.json
data/1.Java初阶/7.集合/15.使用Properties/config.json
+3
-2
data/1.Java初阶/7.集合/15.使用Properties/properties.json
data/1.Java初阶/7.集合/15.使用Properties/properties.json
+6
-5
data/1.Java初阶/7.集合/15.使用Properties/properties.md
data/1.Java初阶/7.集合/15.使用Properties/properties.md
+3
-6
data/1.Java初阶/7.集合/16.使用Deque/config.json
data/1.Java初阶/7.集合/16.使用Deque/config.json
+1
-1
data/1.Java初阶/7.集合/16.使用Deque/deque.md
data/1.Java初阶/7.集合/16.使用Deque/deque.md
+1
-4
data/1.Java初阶/7.集合/2.List接口/config.json
data/1.Java初阶/7.集合/2.List接口/config.json
+3
-2
data/1.Java初阶/7.集合/2.List接口/list.json
data/1.Java初阶/7.集合/2.List接口/list.json
+6
-5
data/1.Java初阶/7.集合/3.Collection集合遍历/config.json
data/1.Java初阶/7.集合/3.Collection集合遍历/config.json
+1
-1
data/1.Java初阶/7.集合/3.Collection集合遍历/iteratable.md
data/1.Java初阶/7.集合/3.Collection集合遍历/iteratable.md
+1
-3
data/1.Java初阶/7.集合/4.Set接口/config.json
data/1.Java初阶/7.集合/4.Set接口/config.json
+1
-1
data/1.Java初阶/7.集合/4.Set接口/set.md
data/1.Java初阶/7.集合/4.Set接口/set.md
+3
-8
data/1.Java初阶/7.集合/5.Map接口/config.json
data/1.Java初阶/7.集合/5.Map接口/config.json
+1
-1
data/1.Java初阶/7.集合/5.Map接口/map.md
data/1.Java初阶/7.集合/5.Map接口/map.md
+2
-3
data/1.Java初阶/7.集合/6.Java集合框架/collection.md
data/1.Java初阶/7.集合/6.Java集合框架/collection.md
+1
-5
data/1.Java初阶/7.集合/7.链表/config.json
data/1.Java初阶/7.集合/7.链表/config.json
+1
-1
data/1.Java初阶/7.集合/7.链表/linkedlist.md
data/1.Java初阶/7.集合/7.链表/linkedlist.md
+1
-5
data/1.Java初阶/7.集合/8.数组列表/arraylist.md
data/1.Java初阶/7.集合/8.数组列表/arraylist.md
+1
-5
data/1.Java初阶/7.集合/8.数组列表/config.json
data/1.Java初阶/7.集合/8.数组列表/config.json
+1
-1
data/1.Java初阶/7.集合/9.散列集/config.json
data/1.Java初阶/7.集合/9.散列集/config.json
+1
-1
data/1.Java初阶/7.集合/9.散列集/hashset.md
data/1.Java初阶/7.集合/9.散列集/hashset.md
+1
-5
data/1.Java初阶/8.操作符/1.算术操作符/arithmetic.md
data/1.Java初阶/8.操作符/1.算术操作符/arithmetic.md
+1
-5
data/1.Java初阶/8.操作符/1.算术操作符/config.json
data/1.Java初阶/8.操作符/1.算术操作符/config.json
+1
-1
data/1.Java初阶/8.操作符/2.自动递增和递减/autoincrease.md
data/1.Java初阶/8.操作符/2.自动递增和递减/autoincrease.md
+8
-6
data/1.Java初阶/8.操作符/2.自动递增和递减/config.json
data/1.Java初阶/8.操作符/2.自动递增和递减/config.json
+1
-1
data/1.Java初阶/8.操作符/3.关系操作符/config.json
data/1.Java初阶/8.操作符/3.关系操作符/config.json
+1
-1
data/1.Java初阶/8.操作符/4.逻辑操作符/config.json
data/1.Java初阶/8.操作符/4.逻辑操作符/config.json
+1
-1
data/1.Java初阶/8.操作符/4.逻辑操作符/logic.md
data/1.Java初阶/8.操作符/4.逻辑操作符/logic.md
+10
-14
data/1.Java初阶/8.操作符/5.按位操作符/bit.json
data/1.Java初阶/8.操作符/5.按位操作符/bit.json
+6
-5
data/1.Java初阶/8.操作符/5.按位操作符/bit.md
data/1.Java初阶/8.操作符/5.按位操作符/bit.md
+1
-4
data/1.Java初阶/8.操作符/5.按位操作符/config.json
data/1.Java初阶/8.操作符/5.按位操作符/config.json
+3
-2
data/1.Java初阶/8.操作符/6.移位操作符/config.json
data/1.Java初阶/8.操作符/6.移位操作符/config.json
+3
-2
data/1.Java初阶/8.操作符/6.移位操作符/move.json
data/1.Java初阶/8.操作符/6.移位操作符/move.json
+6
-5
data/1.Java初阶/8.操作符/6.移位操作符/move.md
data/1.Java初阶/8.操作符/6.移位操作符/move.md
+8
-6
data/1.Java初阶/8.操作符/7.三元操作符if-else/config.json
data/1.Java初阶/8.操作符/7.三元操作符if-else/config.json
+1
-1
data/1.Java初阶/8.操作符/7.三元操作符if-else/three.md
data/1.Java初阶/8.操作符/7.三元操作符if-else/three.md
+1
-5
data/1.Java初阶/8.操作符/8.字符串操作符 + 和 +=/String.md
data/1.Java初阶/8.操作符/8.字符串操作符 + 和 +=/String.md
+1
-5
data/1.Java初阶/8.操作符/8.字符串操作符 + 和 +=/config.json
data/1.Java初阶/8.操作符/8.字符串操作符 + 和 +=/config.json
+1
-1
data/1.Java初阶/8.操作符/9.类型转换操作符/config.json
data/1.Java初阶/8.操作符/9.类型转换操作符/config.json
+0
-25
data/1.Java初阶/9.控制执行流程/1.if-else/config.json
data/1.Java初阶/9.控制执行流程/1.if-else/config.json
+1
-1
data/1.Java初阶/9.控制执行流程/2.for/config.json
data/1.Java初阶/9.控制执行流程/2.for/config.json
+1
-1
data/1.Java初阶/9.控制执行流程/3.switch/config.json
data/1.Java初阶/9.控制执行流程/3.switch/config.json
+1
-1
data/1.Java初阶/9.控制执行流程/4.通过异常处理错误/config.json
data/1.Java初阶/9.控制执行流程/4.通过异常处理错误/config.json
+1
-1
data/1.Java初阶/9.控制执行流程/5.函数/call.json
data/1.Java初阶/9.控制执行流程/5.函数/call.json
+8
-0
data/1.Java初阶/9.控制执行流程/5.函数/call.md
data/1.Java初阶/9.控制执行流程/5.函数/call.md
+90
-0
data/1.Java初阶/9.控制执行流程/5.函数/config.json
data/1.Java初阶/9.控制执行流程/5.函数/config.json
+3
-2
data/1.Java初阶/9.控制执行流程/5.函数/parser.json
data/1.Java初阶/9.控制执行流程/5.函数/parser.json
+2
-1
data/1.Java初阶/9.控制执行流程/5.函数/parser.md
data/1.Java初阶/9.控制执行流程/5.函数/parser.md
+1
-1
data/3.Java高阶/1.行为抽象和Lambda/3.流/config.json
data/3.Java高阶/1.行为抽象和Lambda/3.流/config.json
+2
-1
data/3.Java高阶/1.行为抽象和Lambda/3.流/map_reduce.json
data/3.Java高阶/1.行为抽象和Lambda/3.流/map_reduce.json
+3
-1
data/tree.json
data/tree.json
+156
-69
未找到文件。
data/1.Java初阶/1.Java概览/1.编辑Java源代码/HelloWorld.md
浏览文件 @
4f75dd86
...
...
@@ -27,7 +27,6 @@ public class App {
### A
```
java
public
class
App
{
public
int
main
(){
System
.
out
.
printf
(
"Hello World"
);
...
...
@@ -39,7 +38,6 @@ public class App {
### B
```
java
public
class
App
{
public
static
void
main
(
String
[]
args
){
println
(
"Hello World"
);
...
...
data/1.Java初阶/1.Java概览/2.编译Java程序/app.md
浏览文件 @
4f75dd86
...
...
@@ -4,8 +4,7 @@
## 答案
```
java
```
shell
javac HelloWorld.java
```
...
...
@@ -13,21 +12,18 @@ javac HelloWorld.java
### A
```
java
```
shell
java
-c
HelloWorld.java
```
### B
```
java
```
shell
java
-c
HelloWorld
```
### C
```
java
```
shell
javac
-c
HelloWorld.java
```
data/1.Java初阶/1.Java概览/3.Java的运行机制/runtime.md
浏览文件 @
4f75dd86
...
...
@@ -4,30 +4,18 @@
## 答案
```
java
ClassLoader是JVM实现的一部分
```
## 选项
### A
```
java
ClassLoader是JVM实现的一部分
```
### B
```
java
JDK只包含JRE
```
### C
```
java
JVM不属于JRE
```
data/1.Java初阶/1.Java概览/4.根据CLASSPATH环境变量定位类/classpath.md
浏览文件 @
4f75dd86
...
...
@@ -5,7 +5,6 @@
## 答案
```
bat
%JAVA_HOME%
\bin
```
...
...
@@ -14,20 +13,17 @@
### A
```
bat
%JAVA_HOME%
\tools.jar
```
### B
```
bat
%JAVA_HOME%
\dt.jar
```
### C
```
bat
%JAVA_HOME%
\bin
```
data/1.Java初阶/2.Java的基本语法/1.Java的基本语法格式/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-efb87004230b4680a32c6584112c6f20"
,
"keywords"
:
[
"输出"
,
"循环"
,
"for"
"语法"
,
"Hello World"
],
"children"
:
[],
"export"
:
[
...
...
data/1.Java初阶/2.Java的基本语法/2.Java中的注释/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-c668b26b90ab4982bd906933809d6049"
,
"keywords"
:
[],
"keywords"
:
[
"注释 "
],
"children"
:
[],
"export"
:
[
"comment.json"
...
...
data/1.Java初阶/2.Java的基本语法/3.Java中的关键字/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-0021d9d14dfc429cab17b4dd912651b6"
,
"keywords"
:
[],
"keywords"
:
[
"关键字"
],
"children"
:
[],
"export"
:
[],
"export"
:
[
"keyword.json"
],
"title"
:
"Java中的关键字"
}
\ No newline at end of file
data/1.Java初阶/2.Java的基本语法/3.Java中的关键字/keyword.json
0 → 100644
浏览文件 @
4f75dd86
{
"type"
:
"code_options"
,
"author"
:
"刘鑫"
,
"source"
:
"keyword.md"
,
"exercise_id"
:
"57b6f2510fde488486f73ab8597370c6"
}
\ No newline at end of file
data/1.Java初阶/2.Java的基本语法/4.Java中的标识符/config.json
已删除
100644 → 0
浏览文件 @
9a0523bd
{
"node_id"
:
"java-1d41e245176e437e8103e481bc91aa3b"
,
"keywords"
:
[],
"children"
:
[],
"export"
:
[],
"title"
:
"Java中的标识符"
}
\ No newline at end of file
data/1.Java初阶/2.Java的基本语法/4.Java中的标识符/identifier.md
已删除
100644 → 0
浏览文件 @
9a0523bd
# Java中的标识符
下面代码中哪个不符合Java标识符的规范:
```
java
public
class
App
{
public
static
void
main
(
String
[]
args
)
{
int
22
name
=
1024
;
String
_id
=
"1"
;
boolean
$age
=
true
;
}
}
```
## 答案
```
java
22
name
```
## 选项
### A
args
### B
22name
### C
_id
### D
$age
data/1.Java初阶/3.Java中的变量与常量/2.变量的数据类型/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-ac26535850ef4aaf8bb9fec08bc47825"
,
"keywords"
:
[],
"keywords"
:
[
"变量"
,
"类型"
],
"children"
:
[],
"export"
:
[
"datatype.json"
],
"title"
:
"变量的数据类型"
...
...
data/1.Java初阶/4.Java中的运算符/2.逻辑运算符/logic.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,16 @@
## 答案
B
```
java
boolean
flag1
=
false
;
boolean
flag2
=
false
;
if
(
flag1
&&
flag2
)
{
System
.
out
.
println
(
"1024"
);
}
else
{
System
.
out
.
println
(
"CSDN"
);
}
```
## 选项
...
...
@@ -25,19 +34,6 @@ if (!flag1 || flag2) {
```
java
boolean
flag1
=
false
;
boolean
flag2
=
false
;
if
(
flag1
&&
flag2
)
{
System
.
out
.
println
(
"1024"
);
}
else
{
System
.
out
.
println
(
"CSDN"
);
}
```
### C
```
java
boolean
flag1
=
true
;
boolean
flag2
=
false
;
if
(
flag1
&&
flag2
)
{
...
...
@@ -47,6 +43,6 @@ if (flag1 && flag2) {
}
```
###
D
###
C
以上都不是
data/1.Java初阶/4.Java中的运算符/3.算术运算符/arithmetic.md
浏览文件 @
4f75dd86
...
...
@@ -9,22 +9,18 @@ int b = a++;
## 答案
A
1
## 选项
### A
1
### B
2
###
C
###
B
3
###
D
###
C
以上都不是
data/1.Java初阶/5.选择结构语句/1.if条件语句/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-d4a802d353d648a0a4c90daf60774cf3"
,
"keywords"
:
[],
"keywords"
:
[
"条件"
,
"控制"
,
"分支"
,
"if"
],
"children"
:
[],
"export"
:
[
"if.json"
],
"title"
:
"if条件语句"
...
...
data/1.Java初阶/5.选择结构语句/1.if条件语句/if.json
浏览文件 @
4f75dd86
...
...
@@ -3,5 +3,5 @@
"author"
:
"熊克斐"
,
"source"
:
"if.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"
b44161e5a27342cdbe130ca04f805a93
"
"exercise_id"
:
"
5a0a4481fe024557830736a27f10e64d
"
}
\ No newline at end of file
data/1.Java初阶/5.选择结构语句/1.if条件语句/if.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,14 @@
## 答案
B
```
java
int
count
=
0
;
if
(
1
==
count
)
{
System
.
out
.
println
(
"Hello World"
);
}
else
System
.
out
.
println
(
"CSDN"
);
```
## 选项
...
...
@@ -22,17 +29,6 @@ if (1 = count) {
```
java
int
count
=
0
;
if
(
1
==
count
)
{
System
.
out
.
println
(
"Hello World"
);
}
else
System
.
out
.
println
(
"CSDN"
);
```
### C
```
java
String
name
=
"CSDN"
;
if
(
"CSDN"
!=
name
)
{
System
.
out
.
println
(
"CSDN"
);
...
...
@@ -40,6 +36,6 @@ if ("CSDN" != name) {
System
.
out
.
println
(
"Hello World"
);
```
###
D
###
C
以上都不是
data/1.Java初阶/5.选择结构语句/2.switch条件语句/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-180cf0806d374fa4b10fdaebcc946d89"
,
"keywords"
:
[],
"keywords"
:
[
"条件"
,
"控制"
,
"分支"
,
"switch"
],
"children"
:
[],
"export"
:
[],
"title"
:
"switch条件语句"
"export"
:
[
"switch.json"
]
}
\ No newline at end of file
data/1.Java初阶/5.选择结构语句/2.switch条件语句/switch.json
0 → 100644
浏览文件 @
4f75dd86
{
"type"
:
"code_options"
,
"author"
:
"熊克斐"
,
"source"
:
"switch.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"6c933ddd7fe0437e886c2dfb1332f661"
}
\ No newline at end of file
data/1.Java初阶/5.选择结构语句/2.switch条件语句/switch.md
浏览文件 @
4f75dd86
...
...
@@ -4,12 +4,6 @@
## 答案
A
## 选项
### A
```
java
int
type
=
0
;
...
...
@@ -25,6 +19,8 @@ switch (type) {
}
```
## 选项
### B
```
java
...
...
data/1.Java初阶/6.循环结构语句/1.do
…while循环语句
/config.json
→
data/1.Java初阶/6.循环结构语句/1.do
while循环
/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-9814a131da364cd0a3933b640ddb421c"
,
"keywords"
:
[],
"keywords"
:
[
"循环"
,
"do"
,
"while"
],
"children"
:
[],
"export"
:
[
"dowhile.json"
],
"title"
:
"do…while循环语句"
"export"
:
[
"dowhile.json"
]
}
\ No newline at end of file
data/1.Java初阶/6.循环结构语句/1.do
…while循环语句
/dowhile.json
→
data/1.Java初阶/6.循环结构语句/1.do
while循环
/dowhile.json
浏览文件 @
4f75dd86
文件已移动
data/1.Java初阶/6.循环结构语句/1.do
…while循环语句
/dowhile.md
→
data/1.Java初阶/6.循环结构语句/1.do
while循环
/dowhile.md
浏览文件 @
4f75dd86
...
...
@@ -4,14 +4,10 @@
## 答案
A
1次
## 选项
### A
1次
### B
2次
...
...
data/1.Java初阶/6.循环结构语句/2.for循环语句/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-911127b38b884ab4bb5a35365c41833b"
,
"keywords"
:
[],
"keywords"
:
[
"循环"
,
"for"
],
"children"
:
[],
"export"
:
[],
"export"
:
[
"for.json"
],
"title"
:
"for循环语句"
}
\ No newline at end of file
data/1.Java初阶/6.循环结构语句/2.for循环语句/for.json
0 → 100644
浏览文件 @
4f75dd86
{
"type"
:
"code_options"
,
"author"
:
"刘鑫"
,
"source"
:
"for.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"7c96722b4a9c47629b4d3e543e70a1c5"
}
\ No newline at end of file
data/1.Java初阶/7.集合/1.Collection接口/collection.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,7 @@
## 答案
D
以上都是
## 选项
...
...
@@ -19,7 +19,3 @@ boolean addAll(Collection<? extends E> c)
### C
boolean isEmpty()
### D
以上都是
data/1.Java初阶/7.集合/1.Collection接口/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-73271e880f0843f69437427bfc557ff2"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"collection"
],
"children"
:
[],
"export"
:
[
"collection.json"
],
"title"
:
"Collection接口"
...
...
data/1.Java初阶/7.集合/10.树集/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-b295e8ba38ed4e3c90ea0f7b0d70039e"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"树"
],
"children"
:
[],
"export"
:
[
"treeset.json"
],
"title"
:
"树集"
...
...
data/1.Java初阶/7.集合/10.树集/treeset.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,7 @@
## 答案
B
它不能被克隆,因为它没有实现Cloneable接口
## 选项
...
...
@@ -12,10 +12,6 @@ B
是一个有序的集合,它的作用是提供有序的Set集合
### B
它不能被克隆,因为它没有实现Cloneable接口
### C
继承于AbstractSet抽象类
...
...
data/1.Java初阶/7.集合/11.映射/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-7625240ab0254b198142c52926465f42"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"映射"
,
"字典"
],
"children"
:
[
{
"基本映射操作"
:
{
...
...
data/1.Java初阶/7.集合/11.映射/map.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,7 @@
## 答案
D
以上都是
## 选项
...
...
@@ -37,6 +37,5 @@ while (it.hasNext()) {
}
```
### D
以上都是
data/1.Java初阶/7.集合/12.遗留的集合/legacy.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,7 @@
## 答案
D
以上都是
## 选项
...
...
@@ -20,6 +20,4 @@ Vector
Stack
### D
以上都是
data/1.Java初阶/7.集合/13.编写equals和hashCode/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-bb2a2b6d7b114799b01aa89bafbdab86"
,
"keywords"
:
[],
"keywords"
:
[
"判等"
,
"hash"
,
"equals"
],
"children"
:
[],
"export"
:
[
"equals.json"
,
"hashCode.json"
],
"title"
:
"编写equals和hashCode"
...
...
data/1.Java初阶/7.集合/13.编写equals和hashCode/equals.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,12 @@
## 答案
B
```
java
int
a
=
1
;
int
b
=
2
;
System
.
out
.
println
(
a
.
equals
(
b
));
```
## 选项
...
...
@@ -17,15 +22,6 @@ String b = "2";
System
.
out
.
println
(
a
.
equals
(
b
));
```
### B
```
java
int
a
=
1
;
int
b
=
2
;
System
.
out
.
println
(
a
.
equals
(
b
));
```
### C
```
java
...
...
data/1.Java初阶/7.集合/13.编写equals和hashCode/hashCode.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,7 @@
## 答案
B
同时覆盖hashCode()和equals(),数据就是唯一的
## 选项
...
...
@@ -12,9 +12,6 @@ B
覆盖equals()但不覆盖hashCode(),会导致数据的不唯一
### B
同时覆盖hashCode()和equals(),数据就是唯一的
### C
...
...
data/1.Java初阶/7.集合/14.使用TreeMap/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-6d9ccc979da54411ac65fccd1a12071e"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"TreeMap"
,
"字典"
],
"children"
:
[],
"export"
:
[
"treemap.json"
],
"title"
:
"使用TreeMap"
...
...
data/1.Java初阶/7.集合/14.使用TreeMap/treemap.md
浏览文件 @
4f75dd86
...
...
@@ -4,14 +4,10 @@
## 答案
A
A
TreeMap继承于AbstractMap,实现了Map, Cloneable, NavigableMap, Serializable接口
## 选项
### A
TreeMap继承于AbstractMap,实现了Map, Cloneable, NavigableMap, Serializable接口
### B
TreeMap允许出现重复的key
...
...
data/1.Java初阶/7.集合/15.使用Properties/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-7b0b78c00f934f7f958dcf7107243ae1"
,
"keywords"
:
[],
"keywords"
:
[
"属性"
,
"字典"
,
"集合"
],
"children"
:
[],
"export"
:
[],
"export"
:
[
"properties.json"
],
"title"
:
"使用Properties"
}
\ No newline at end of file
data/1.Java初阶/7.集合/15.使用Properties/properties.json
浏览文件 @
4f75dd86
{
"type"
:
"code_options"
,
"author"
:
"熊克斐"
,
"source"
:
"properties.md"
,
"exercise_id"
:
""
,
"notebook_enable"
:
false
"type"
:
"code_options"
,
"author"
:
"熊克斐"
,
"source"
:
"properties.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"e18aecbc334e44b9aba7a72abc627970"
}
\ No newline at end of file
data/1.Java初阶/7.集合/15.使用Properties/properties.md
浏览文件 @
4f75dd86
...
...
@@ -4,12 +4,6 @@
## 答案
A
## 选项
### A
```
java
public
void
test
()
{
...
...
@@ -18,6 +12,9 @@ public void test() {
}
```
## 选项
### B
```
java
...
...
data/1.Java初阶/7.集合/16.使用Deque/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-ff4a16d20df24eda93d843749e777a76"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"队列"
],
"children"
:
[],
"export"
:
[
"deque.json"
],
"title"
:
"使用Deque"
...
...
data/1.Java初阶/7.集合/16.使用Deque/deque.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,7 @@
## 答案
D
以上都是
## 选项
...
...
@@ -20,6 +20,3 @@ D
可以用作堆栈
### D
以上都是
data/1.Java初阶/7.集合/2.List接口/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-c6a5d8d2c6394aae9ba504a2d2e922e8"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"list"
,
"列表"
],
"children"
:
[
{
"List接口简介"
:
{
...
...
@@ -27,6 +27,6 @@
}
}
],
"export"
:
[],
"export"
:
[
"list.json"
],
"title"
:
"List接口"
}
\ No newline at end of file
data/1.Java初阶/7.集合/2.List接口/list.json
浏览文件 @
4f75dd86
{
"type"
:
"code_options"
,
"author"
:
"熊克斐"
,
"source"
:
"list.md"
,
"exercise_id"
:
"
"
,
"notebook_enable"
:
false
"type"
:
"code_options"
,
"author"
:
"熊克斐"
,
"source"
:
"list.md"
,
"exercise_id"
:
"d7d1d8ac9669479bbd22b61fda84be44
"
,
"notebook_enable"
:
false
}
\ No newline at end of file
data/1.Java初阶/7.集合/3.Collection集合遍历/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-04044ad9b1914b928a0f48be4478f9ac"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"迭代"
,
"iteratable"
],
"children"
:
[
{
"Iterator遍历集合"
:
{
...
...
data/1.Java初阶/7.集合/3.Collection集合遍历/iteratable.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,7 @@
## 答案
D
以上都是
## 选项
...
...
@@ -40,6 +40,4 @@ for (String str : array) {
}
```
### D
以上都是
data/1.Java初阶/7.集合/4.Set接口/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-243249b52e4449d1acc2f61ac3d492c4"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"set"
],
"children"
:
[
{
"Set接口简介"
:
{
...
...
data/1.Java初阶/7.集合/4.Set接口/set.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,9 @@
## 答案
C
```
java
LinkedSet
```
## 选项
...
...
@@ -22,13 +24,6 @@ HashSet
TreeSet
```
### C
```
java
LinkedSet
```
### D
以上都是
data/1.Java初阶/7.集合/5.Map接口/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-585898e24579448980def03a33fd553c"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"字典"
,
"map"
],
"children"
:
[
{
"Map接口简介"
:
{
...
...
data/1.Java初阶/7.集合/5.Map接口/map.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,7 @@
## 答案
D
以上都是
## 选项
...
...
@@ -29,6 +29,5 @@ Hashtable不是线程安全的
ConcurrentHashMap无法保证并发的安全性
```
### D
以上都是
data/1.Java初阶/7.集合/6.Java集合框架/collection.md
浏览文件 @
4f75dd86
...
...
@@ -4,14 +4,10 @@
## 答案
A
List和Set都是Collections的子类
## 选项
### A
List和Set都是Collections的子类
### B
Map不是Collection的子类
...
...
data/1.Java初阶/7.集合/7.链表/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-bfbb4319eb60496583ace9aca561c7ab"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"链表"
],
"children"
:
[],
"export"
:
[
"linkedlist.json"
],
"title"
:
"链表"
...
...
data/1.Java初阶/7.集合/7.链表/linkedlist.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,7 @@
## 答案
B
默认会把元素添加到链表的第一个位置
## 选项
...
...
@@ -12,10 +12,6 @@ B
LinkedList类是双向列表,列表中的每个节点都包含了对前一个和后一个元素的引用
### B
默认会把元素添加到链表的第一个位置
### C
清空LinkedList的方法是clear()
...
...
data/1.Java初阶/7.集合/8.数组列表/arraylist.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,7 @@
## 答案
C
ArrayList中的元素是有序的
## 选项
...
...
@@ -16,10 +16,6 @@ ArrayList底层是基于数组来实现容量大小动态变化的
ArrayList的扩容机制为首先扩容为原始容量的 1.5 倍
### C
ArrayList中的元素是有序的
### D
以上都不是
data/1.Java初阶/7.集合/8.数组列表/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-a8e9302bf3f34c67b6d0d1d1dd5b8e06"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"ArrayList"
],
"children"
:
[],
"export"
:
[
"arraylist.json"
],
"title"
:
"数组列表"
...
...
data/1.Java初阶/7.集合/9.散列集/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-53a2b2fe37394f808059240a7a65c347"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"HashSet"
],
"children"
:
[],
"export"
:
[],
"title"
:
"散列集"
...
...
data/1.Java初阶/7.集合/9.散列集/hashset.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,7 @@
## 答案
C
ArrayList中的元素是有序的
## 选项
...
...
@@ -16,10 +16,6 @@ HashSet的无参构造函数创建一个大小为16的容器,加载因子为0.
HashSet可以存储重复的元素
### C
ArrayList中的元素是有序的
### D
以上都不是
data/1.Java初阶/8.操作符/1.算术操作符/arithmetic.md
浏览文件 @
4f75dd86
...
...
@@ -9,14 +9,10 @@ int b = a++;
## 答案
A
1
## 选项
### A
1
### B
2
...
...
data/1.Java初阶/8.操作符/1.算术操作符/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-a4cc291dc2264301a87f361de4b8d6ea"
,
"keywords"
:
[],
"keywords"
:
[
"算术操作符"
],
"children"
:
[
{
"一元加、减操作符"
:
{
...
...
data/1.Java初阶/8.操作符/2.自动递增和递减/autoincrease.md
浏览文件 @
4f75dd86
...
...
@@ -13,24 +13,26 @@ System.out.println("b = " + b);
## 答案
A
## 选项
### A
```
a = 1
b = 0
```
## 选项
### B
```
a = 1
b = 1
```
### C
```
a = 0
b = 1
```
### D
...
...
data/1.Java初阶/8.操作符/2.自动递增和递减/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-f6e6b9e930ef46699788339fc7322f18"
,
"keywords"
:
[],
"keywords"
:
[
"递增"
,
"递减"
],
"children"
:
[],
"export"
:
[
"autoincrease.json"
],
"title"
:
"自动递增和递减"
...
...
data/1.Java初阶/8.操作符/3.关系操作符/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-21247e52fb0849699959f78321bc855e"
,
"keywords"
:
[],
"keywords"
:
[
"关系运算"
],
"children"
:
[
{
"测试对象的等价性"
:
{
...
...
data/1.Java初阶/8.操作符/4.逻辑操作符/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-a7a6076a60e140f18b63b6ea3574eed2"
,
"keywords"
:
[],
"keywords"
:
[
"逻辑"
,
"布尔"
,
"bool"
,
"boolean"
],
"children"
:
[
{
"短路"
:
{
...
...
data/1.Java初阶/8.操作符/4.逻辑操作符/logic.md
浏览文件 @
4f75dd86
...
...
@@ -4,7 +4,16 @@
## 答案
B
```
java
boolean
flag1
=
false
;
boolean
flag2
=
false
;
if
(
flag1
&&
flag2
)
{
System
.
out
.
println
(
"1024"
);
}
else
{
System
.
out
.
println
(
"CSDN"
);
}
```
## 选项
...
...
@@ -21,19 +30,6 @@ if (!flag1 || flag2) {
}
```
### B
```
java
boolean
flag1
=
false
;
boolean
flag2
=
false
;
if
(
flag1
&&
flag2
)
{
System
.
out
.
println
(
"1024"
);
}
else
{
System
.
out
.
println
(
"CSDN"
);
}
```
### C
```
java
...
...
data/1.Java初阶/8.操作符/5.按位操作符/bit.json
浏览文件 @
4f75dd86
{
"type"
:
"code_options"
,
"author"
:
"熊克斐"
,
"source"
:
"bit.md"
,
"exercise_id"
:
""
,
"notebook_enable"
:
false
"type"
:
"code_options"
,
"author"
:
"熊克斐"
,
"source"
:
"bit.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"84395adb6bd34485a58b388ab28ec315"
}
\ No newline at end of file
data/1.Java初阶/8.操作符/5.按位操作符/bit.md
浏览文件 @
4f75dd86
...
...
@@ -10,7 +10,7 @@ System.out.println(1 | 2);
## 答案
D
以上都不是
## 选项
...
...
@@ -29,6 +29,3 @@ D
2
2
### D
以上都不是
data/1.Java初阶/8.操作符/5.按位操作符/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-58320af2f24648198eda32c4da587b5d"
,
"keywords"
:
[],
"keywords"
:
[
"位运算"
,
"bit"
,
"比特"
],
"children"
:
[],
"export"
:
[],
"export"
:
[
"bit.json"
],
"title"
:
"按位操作符"
}
\ No newline at end of file
data/1.Java初阶/8.操作符/6.移位操作符/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-0d405a41281d424ca00dca4e18c12b61"
,
"keywords"
:
[],
"keywords"
:
[
"位运算"
,
"左移"
,
"右移"
],
"children"
:
[],
"export"
:
[],
"export"
:
[
"move.json"
],
"title"
:
"移位操作符"
}
\ No newline at end of file
data/1.Java初阶/8.操作符/6.移位操作符/move.json
浏览文件 @
4f75dd86
{
"type"
:
"code_options"
,
"author"
:
"熊克斐"
,
"source"
:
"move.md"
,
"exercise_id"
:
"
"
,
"notebook_enable"
:
false
"type"
:
"code_options"
,
"author"
:
"熊克斐"
,
"source"
:
"move.md"
,
"exercise_id"
:
"5eb1972ea2cd427781cc5f0162552186
"
,
"notebook_enable"
:
false
}
\ No newline at end of file
data/1.Java初阶/8.操作符/6.移位操作符/move.md
浏览文件 @
4f75dd86
...
...
@@ -11,24 +11,26 @@ System.out.println(c >> d);
## 答案
A
## 选项
### A
```
8
0
```
## 选项
### B
```
16
-1
```
### C
```
2
2
```
### D
...
...
data/1.Java初阶/8.操作符/7.三元操作符if-else/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-27584561349847fa84c7905215131621"
,
"keywords"
:
[],
"keywords"
:
[
"逻辑"
,
"三元运算符"
],
"children"
:
[],
"export"
:
[
"three.json"
],
"title"
:
"三元操作符if-else"
...
...
data/1.Java初阶/8.操作符/7.三元操作符if-else/three.md
浏览文件 @
4f75dd86
...
...
@@ -11,7 +11,7 @@ System.out.println(a == b ? 0 : 1);
## 答案
B
1
## 选项
...
...
@@ -19,10 +19,6 @@ B
10
### B
1
### C
20
...
...
data/1.Java初阶/8.操作符/8.字符串操作符 + 和 +=/String.md
浏览文件 @
4f75dd86
...
...
@@ -3,7 +3,6 @@
下面代码执行后的结果是:
```
java
String
s1
=
"1"
;
int
s2
=
2
;
System
.
out
.
println
(
s1
+
s2
);
...
...
@@ -11,7 +10,7 @@ System.out.println(s1 + s2);
## 答案
C
12
## 选项
...
...
@@ -25,8 +24,5 @@ C
### C
12
### D
以上都不是
data/1.Java初阶/8.操作符/8.字符串操作符 + 和 +=/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-8fad68e2479a4e93875c6ca1746baef6"
,
"keywords"
:
[],
"keywords"
:
[
"字符串"
],
"children"
:
[],
"export"
:
[
"String.json"
],
"title"
:
"字符串操作符 + 和 +="
...
...
data/1.Java初阶/8.操作符/9.类型转换操作符/config.json
已删除
100644 → 0
浏览文件 @
9a0523bd
{
"node_id"
:
"java-b075138ebd0145338459d7a9de46aef7"
,
"keywords"
:
[],
"children"
:
[
{
"截尾和舍入"
:
{
"keywords"
:
[],
"children"
:
[],
"node_id"
:
"java-805d92324ad14bf48a50084d9af74a8c"
,
"title"
:
"截尾和舍入"
}
},
{
"提升"
:
{
"keywords"
:
[],
"children"
:
[],
"node_id"
:
"569d5e11c4fc5de7844053d9a733c5e8"
,
"title"
:
"提升"
}
}
],
"export"
:
[],
"title"
:
"类型转换操作符"
}
\ No newline at end of file
data/1.Java初阶/9.控制执行流程/1.if-else/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-85a126a6ba39488aaabd2d4015353175"
,
"keywords"
:
[],
"keywords"
:
[
"流程控制"
,
"if"
,
"else"
],
"children"
:
[],
"export"
:
[],
"title"
:
"if-else"
...
...
data/1.Java初阶/9.控制执行流程/2.for/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-722dc1cccbc74369b9bff5ac580bc649"
,
"keywords"
:
[],
"keywords"
:
[
"流程控制"
,
"for"
,
"循环"
,
"foreach"
],
"children"
:
[],
"export"
:
[
"for.json"
,
...
...
data/1.Java初阶/9.控制执行流程/3.switch/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-05144fa9daf94a64ad0667eab1d6cc9a"
,
"keywords"
:
[],
"keywords"
:
[
"流程控制"
,
"switch"
],
"children"
:
[],
"export"
:
[
"switch.json"
],
"title"
:
"switch"
...
...
data/1.Java初阶/9.控制执行流程/4.通过异常处理错误/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-d11b7f01004c443ea6226d174ba1e3fa"
,
"keywords"
:
[],
"keywords"
:
[
"异常"
,
"错误"
,
"try"
,
"catch"
,
"finally"
],
"children"
:
[
{
"概念"
:
{
...
...
data/1.Java初阶/9.控制执行流程/5.函数/call.json
0 → 100644
浏览文件 @
4f75dd86
{
"type"
:
"code_options"
,
"author"
:
"刘鑫"
,
"source"
:
"call.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"6e8215c3d78746279787c02cd6b40db4"
}
\ No newline at end of file
data/1.Java初阶/9.控制执行流程/5.函数/call.md
0 → 100644
浏览文件 @
4f75dd86
# tampline 调用
我们需要编写一个函数,对浮点数进行sigmod计算,即
`f(x)=1/(1+e^(-x))`
,下列函数实现正确的是:
## 答案
```
java
import
math.Math
;
public
class
Util
{
public
float
sigmod
(
float
x
){
return
1
/(
1
+
Math
.
exp
(-
x
));
}
}
```
## 选项
### 没有 return
```
java
import
math.Math
;
public
class
Util
{
public
float
sigmod
(
float
x
){
1
/(
1
+
Math
.
exp
(-
x
));
}
}
```
### 错误的结果返回方式
```
java
import
math.Math
;
public
class
Util
{
public
void
sigmod
(
float
x
,
float
result
){
result
=
1
/(
1
+
Math
.
exp
(-
x
));
}
}
```
### 结构定义错误
```
java
import
math.Math
;
public
class
Util
{
public
sigmod
(
float
x
)
->
float
{
return
1
/(
1
+
Math
.
exp
(-
x
));
}
}
```
### 结构定义错误
```
java
import
math.Math
;
public
class
Util
{
public
sigmod
(
float
x
):
float
=
{
return
1
/(
1
+
Math
.
exp
(-
x
));
}
}
```
### 结构定义错误
```
java
import
math.Math
;
public
class
Util
{
public
sigmod
(
float
x
)
returns
float
{
return
1
/(
1
+
Math
.
exp
(-
x
));
}
}
```
### 结构定义错误
```
java
import
math.Math
;
public
class
Util
{
public
sigmod
(
float
x
):
float
{
return
1
/(
1
+
Math
.
exp
(-
x
));
}
}
```
data/1.Java初阶/9.控制执行流程/5.函数/config.json
浏览文件 @
4f75dd86
{
"node_id"
:
"java-f2482f12e0634885bdf6701a5a802c77"
,
"keywords"
:
[],
"keywords"
:
[
"函数"
,
"function"
],
"children"
:
[],
"export"
:
[
"
try
.json"
]
"export"
:
[
"
call.json"
,
"parser
.json"
]
}
\ No newline at end of file
data/1.Java初阶/9.控制执行流程/5.函数/
try
.json
→
data/1.Java初阶/9.控制执行流程/5.函数/
parser
.json
浏览文件 @
4f75dd86
{
"type"
:
"code_options"
,
"author"
:
"刘鑫"
,
"source"
:
"
try
.md"
,
"source"
:
"
parser
.md"
,
"exercise_id"
:
"6d8116aa4c254e808bc1c2aa33afdd4f"
,
"notebook_enable"
:
false
}
\ No newline at end of file
data/1.Java初阶/9.控制执行流程/5.函数/
try
.md
→
data/1.Java初阶/9.控制执行流程/5.函数/
parser
.md
浏览文件 @
4f75dd86
#
Try 封装
#
Parser 函数
我们的项目中有一个预备好的
`Try<T>`
类型,它可以携带正常对象或异常,只需要调用对应的静态方法
`Try.success(T result)`
或者
`Try.failure(Throwable err)`
即可。
...
...
data/3.Java高阶/1.行为抽象和Lambda/3.流/config.json
浏览文件 @
4f75dd86
...
...
@@ -2,6 +2,6 @@
"node_id"
:
"java-9f8b0da343fd415c9b29380647b0f1f8"
,
"keywords"
:
[],
"children"
:
[],
"export"
:
[],
"export"
:
[
"map_reduce.json"
],
"title"
:
"流简介"
}
\ No newline at end of file
data/3.Java高阶/1.行为抽象和Lambda/3.流/map_reduce.json
浏览文件 @
4f75dd86
...
...
@@ -2,5 +2,6 @@
"type"
:
"code_options"
,
"author"
:
"刘鑫"
,
"source"
:
"map_reduce.md"
,
"notebook_enable"
:
true
"notebook_enable"
:
true
,
"exercise_id"
:
"76508072bc98405287653b9827f86424"
}
\ No newline at end of file
data/tree.json
浏览文件 @
4f75dd86
...
...
@@ -57,9 +57,8 @@
"Java的基本语法格式"
:
{
"node_id"
:
"java-efb87004230b4680a32c6584112c6f20"
,
"keywords"
:
[
"输出"
,
"循环"
,
"for"
"语法"
,
"Hello World"
],
"children"
:
[]
}
...
...
@@ -67,21 +66,18 @@
{
"Java中的注释"
:
{
"node_id"
:
"java-c668b26b90ab4982bd906933809d6049"
,
"keywords"
:
[],
"keywords"
:
[
"注释 "
],
"children"
:
[]
}
},
{
"Java中的关键字"
:
{
"node_id"
:
"java-0021d9d14dfc429cab17b4dd912651b6"
,
"keywords"
:
[],
"children"
:
[]
}
},
{
"Java中的标识符"
:
{
"node_id"
:
"java-1d41e245176e437e8103e481bc91aa3b"
,
"keywords"
:
[],
"keywords"
:
[
"关键字"
],
"children"
:
[]
}
}
...
...
@@ -107,7 +103,10 @@
{
"变量的数据类型"
:
{
"node_id"
:
"java-ac26535850ef4aaf8bb9fec08bc47825"
,
"keywords"
:
[],
"keywords"
:
[
"变量"
,
"类型"
],
"children"
:
[]
}
},
...
...
@@ -187,14 +186,24 @@
{
"if条件语句"
:
{
"node_id"
:
"java-d4a802d353d648a0a4c90daf60774cf3"
,
"keywords"
:
[],
"keywords"
:
[
"条件"
,
"控制"
,
"分支"
,
"if"
],
"children"
:
[]
}
},
{
"switch条件语句"
:
{
"node_id"
:
"java-180cf0806d374fa4b10fdaebcc946d89"
,
"keywords"
:
[],
"keywords"
:
[
"条件"
,
"控制"
,
"分支"
,
"switch"
],
"children"
:
[]
}
}
...
...
@@ -207,16 +216,23 @@
"keywords"
:
[],
"children"
:
[
{
"do
…while循环语句
"
:
{
"do
while循环
"
:
{
"node_id"
:
"java-9814a131da364cd0a3933b640ddb421c"
,
"keywords"
:
[],
"keywords"
:
[
"循环"
,
"do"
,
"while"
],
"children"
:
[]
}
},
{
"for循环语句"
:
{
"node_id"
:
"java-911127b38b884ab4bb5a35365c41833b"
,
"keywords"
:
[],
"keywords"
:
[
"循环"
,
"for"
],
"children"
:
[]
}
}
...
...
@@ -231,14 +247,21 @@
{
"Collection接口"
:
{
"node_id"
:
"java-73271e880f0843f69437427bfc557ff2"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"collection"
],
"children"
:
[]
}
},
{
"List接口"
:
{
"node_id"
:
"java-c6a5d8d2c6394aae9ba504a2d2e922e8"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"list"
,
"列表"
],
"children"
:
[
{
"List接口简介"
:
{
...
...
@@ -270,7 +293,11 @@
{
"Collection集合遍历"
:
{
"node_id"
:
"java-04044ad9b1914b928a0f48be4478f9ac"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"迭代"
,
"iteratable"
],
"children"
:
[
{
"Iterator遍历集合"
:
{
...
...
@@ -302,7 +329,10 @@
{
"Set接口"
:
{
"node_id"
:
"java-243249b52e4449d1acc2f61ac3d492c4"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"set"
],
"children"
:
[
{
"Set接口简介"
:
{
...
...
@@ -334,7 +364,11 @@
{
"Map接口"
:
{
"node_id"
:
"java-585898e24579448980def03a33fd553c"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"字典"
,
"map"
],
"children"
:
[
{
"Map接口简介"
:
{
...
...
@@ -404,35 +438,51 @@
{
"链表"
:
{
"node_id"
:
"java-bfbb4319eb60496583ace9aca561c7ab"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"链表"
],
"children"
:
[]
}
},
{
"数组列表"
:
{
"node_id"
:
"java-a8e9302bf3f34c67b6d0d1d1dd5b8e06"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"ArrayList"
],
"children"
:
[]
}
},
{
"散列集"
:
{
"node_id"
:
"java-53a2b2fe37394f808059240a7a65c347"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"HashSet"
],
"children"
:
[]
}
},
{
"树集"
:
{
"node_id"
:
"java-b295e8ba38ed4e3c90ea0f7b0d70039e"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"树"
],
"children"
:
[]
}
},
{
"映射"
:
{
"node_id"
:
"java-7625240ab0254b198142c52926465f42"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"映射"
,
"字典"
],
"children"
:
[
{
"基本映射操作"
:
{
...
...
@@ -524,28 +574,43 @@
{
"编写equals和hashCode"
:
{
"node_id"
:
"java-bb2a2b6d7b114799b01aa89bafbdab86"
,
"keywords"
:
[],
"keywords"
:
[
"判等"
,
"hash"
,
"equals"
],
"children"
:
[]
}
},
{
"使用TreeMap"
:
{
"node_id"
:
"java-6d9ccc979da54411ac65fccd1a12071e"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"TreeMap"
,
"字典"
],
"children"
:
[]
}
},
{
"使用Properties"
:
{
"node_id"
:
"java-7b0b78c00f934f7f958dcf7107243ae1"
,
"keywords"
:
[],
"keywords"
:
[
"属性"
,
"字典"
,
"集合"
],
"children"
:
[]
}
},
{
"使用Deque"
:
{
"node_id"
:
"java-ff4a16d20df24eda93d843749e777a76"
,
"keywords"
:
[],
"keywords"
:
[
"集合"
,
"队列"
],
"children"
:
[]
}
}
...
...
@@ -560,7 +625,9 @@
{
"算术操作符"
:
{
"node_id"
:
"java-a4cc291dc2264301a87f361de4b8d6ea"
,
"keywords"
:
[],
"keywords"
:
[
"算术操作符"
],
"children"
:
[
{
"一元加、减操作符"
:
{
...
...
@@ -576,14 +643,19 @@
{
"自动递增和递减"
:
{
"node_id"
:
"java-f6e6b9e930ef46699788339fc7322f18"
,
"keywords"
:
[],
"keywords"
:
[
"递增"
,
"递减"
],
"children"
:
[]
}
},
{
"关系操作符"
:
{
"node_id"
:
"java-21247e52fb0849699959f78321bc855e"
,
"keywords"
:
[],
"keywords"
:
[
"关系运算"
],
"children"
:
[
{
"测试对象的等价性"
:
{
...
...
@@ -599,7 +671,12 @@
{
"逻辑操作符"
:
{
"node_id"
:
"java-a7a6076a60e140f18b63b6ea3574eed2"
,
"keywords"
:
[],
"keywords"
:
[
"逻辑"
,
"布尔"
,
"bool"
,
"boolean"
],
"children"
:
[
{
"短路"
:
{
...
...
@@ -615,54 +692,43 @@
{
"按位操作符"
:
{
"node_id"
:
"java-58320af2f24648198eda32c4da587b5d"
,
"keywords"
:
[],
"keywords"
:
[
"位运算"
,
"bit"
,
"比特"
],
"children"
:
[]
}
},
{
"移位操作符"
:
{
"node_id"
:
"java-0d405a41281d424ca00dca4e18c12b61"
,
"keywords"
:
[],
"keywords"
:
[
"位运算"
,
"左移"
,
"右移"
],
"children"
:
[]
}
},
{
"三元操作符if-else"
:
{
"node_id"
:
"java-27584561349847fa84c7905215131621"
,
"keywords"
:
[],
"keywords"
:
[
"逻辑"
,
"三元运算符"
],
"children"
:
[]
}
},
{
"字符串操作符 + 和 +="
:
{
"node_id"
:
"java-8fad68e2479a4e93875c6ca1746baef6"
,
"keywords"
:
[],
"keywords"
:
[
"字符串"
],
"children"
:
[]
}
},
{
"类型转换操作符"
:
{
"node_id"
:
"java-b075138ebd0145338459d7a9de46aef7"
,
"keywords"
:
[],
"children"
:
[
{
"截尾和舍入"
:
{
"keywords"
:
[],
"children"
:
[],
"node_id"
:
"java-805d92324ad14bf48a50084d9af74a8c"
,
"title"
:
"截尾和舍入"
}
},
{
"提升"
:
{
"keywords"
:
[],
"children"
:
[],
"node_id"
:
"569d5e11c4fc5de7844053d9a733c5e8"
,
"title"
:
"提升"
}
}
]
}
}
]
}
...
...
@@ -675,28 +741,46 @@
{
"if-else"
:
{
"node_id"
:
"java-85a126a6ba39488aaabd2d4015353175"
,
"keywords"
:
[],
"keywords"
:
[
"流程控制"
,
"if"
,
"else"
],
"children"
:
[]
}
},
{
"for"
:
{
"node_id"
:
"java-722dc1cccbc74369b9bff5ac580bc649"
,
"keywords"
:
[],
"keywords"
:
[
"流程控制"
,
"for"
,
"循环"
,
"foreach"
],
"children"
:
[]
}
},
{
"switch"
:
{
"node_id"
:
"java-05144fa9daf94a64ad0667eab1d6cc9a"
,
"keywords"
:
[],
"keywords"
:
[
"流程控制"
,
"switch"
],
"children"
:
[]
}
},
{
"通过异常处理错误"
:
{
"node_id"
:
"java-d11b7f01004c443ea6226d174ba1e3fa"
,
"keywords"
:
[],
"keywords"
:
[
"异常"
,
"错误"
,
"try"
,
"catch"
,
"finally"
],
"children"
:
[
{
"概念"
:
{
...
...
@@ -916,7 +1000,10 @@
{
"函数"
:
{
"node_id"
:
"java-f2482f12e0634885bdf6701a5a802c77"
,
"keywords"
:
[],
"keywords"
:
[
"函数"
,
"function"
],
"children"
:
[]
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录