Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
programiz-zh
提交
f5fc3c77
P
programiz-zh
项目概览
OpenDocCN
/
programiz-zh
9 个月 前同步成功
通知
0
Star
48
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
programiz-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f5fc3c77
编写于
7月 10, 2020
作者:
W
wizardforcel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
2020-07-10 21:23:20
上级
db77d3d5
变更
91
隐藏空白更改
内联
并排
Showing
91 changed file
with
149 addition
and
149 deletion
+149
-149
docs/c/30.md
docs/c/30.md
+1
-1
docs/java/132.md
docs/java/132.md
+1
-1
docs/java/133.md
docs/java/133.md
+1
-1
docs/java/135.md
docs/java/135.md
+1
-1
docs/java/141.md
docs/java/141.md
+1
-1
docs/java/142.md
docs/java/142.md
+1
-1
docs/java/143.md
docs/java/143.md
+1
-1
docs/java/144.md
docs/java/144.md
+1
-1
docs/java/148.md
docs/java/148.md
+1
-1
docs/java/149.md
docs/java/149.md
+1
-1
docs/java/150.md
docs/java/150.md
+2
-2
docs/java/151.md
docs/java/151.md
+1
-1
docs/java/152.md
docs/java/152.md
+1
-1
docs/java/153.md
docs/java/153.md
+2
-2
docs/java/155.md
docs/java/155.md
+1
-1
docs/java/156.md
docs/java/156.md
+1
-1
docs/java/158.md
docs/java/158.md
+2
-2
docs/java/159.md
docs/java/159.md
+1
-1
docs/java/160.md
docs/java/160.md
+1
-1
docs/java/162.md
docs/java/162.md
+1
-1
docs/java/172.md
docs/java/172.md
+1
-1
docs/java/173.md
docs/java/173.md
+1
-1
docs/java/174.md
docs/java/174.md
+1
-1
docs/java/191.md
docs/java/191.md
+2
-2
docs/java/192.md
docs/java/192.md
+1
-1
docs/java/193.md
docs/java/193.md
+1
-1
docs/java/194.md
docs/java/194.md
+1
-1
docs/java/195.md
docs/java/195.md
+2
-2
docs/java/196.md
docs/java/196.md
+2
-2
docs/java/197.md
docs/java/197.md
+1
-1
docs/java/198.md
docs/java/198.md
+3
-3
docs/java/199.md
docs/java/199.md
+1
-1
docs/java/202.md
docs/java/202.md
+1
-1
docs/java/203.md
docs/java/203.md
+1
-1
docs/java/205.md
docs/java/205.md
+1
-1
docs/java/207.md
docs/java/207.md
+1
-1
docs/java/214.md
docs/java/214.md
+3
-3
docs/java/217.md
docs/java/217.md
+1
-1
docs/kotlin/100.md
docs/kotlin/100.md
+1
-1
docs/kotlin/101.md
docs/kotlin/101.md
+2
-2
docs/kotlin/102.md
docs/kotlin/102.md
+2
-2
docs/kotlin/103.md
docs/kotlin/103.md
+1
-1
docs/kotlin/105.md
docs/kotlin/105.md
+1
-1
docs/kotlin/109.md
docs/kotlin/109.md
+1
-1
docs/kotlin/11.md
docs/kotlin/11.md
+3
-3
docs/kotlin/111.md
docs/kotlin/111.md
+1
-1
docs/kotlin/113.md
docs/kotlin/113.md
+1
-1
docs/kotlin/12.md
docs/kotlin/12.md
+2
-2
docs/kotlin/120.md
docs/kotlin/120.md
+3
-3
docs/kotlin/123.md
docs/kotlin/123.md
+1
-1
docs/kotlin/13.md
docs/kotlin/13.md
+1
-1
docs/kotlin/14.md
docs/kotlin/14.md
+5
-5
docs/kotlin/15.md
docs/kotlin/15.md
+3
-3
docs/kotlin/16.md
docs/kotlin/16.md
+2
-2
docs/kotlin/18.md
docs/kotlin/18.md
+3
-3
docs/kotlin/19.md
docs/kotlin/19.md
+1
-1
docs/kotlin/20.md
docs/kotlin/20.md
+1
-1
docs/kotlin/21.md
docs/kotlin/21.md
+2
-2
docs/kotlin/23.md
docs/kotlin/23.md
+1
-1
docs/kotlin/24.md
docs/kotlin/24.md
+3
-3
docs/kotlin/25.md
docs/kotlin/25.md
+1
-1
docs/kotlin/26.md
docs/kotlin/26.md
+3
-3
docs/kotlin/29.md
docs/kotlin/29.md
+2
-2
docs/kotlin/30.md
docs/kotlin/30.md
+1
-1
docs/kotlin/31.md
docs/kotlin/31.md
+5
-5
docs/kotlin/33.md
docs/kotlin/33.md
+2
-2
docs/kotlin/36.md
docs/kotlin/36.md
+1
-1
docs/kotlin/38.md
docs/kotlin/38.md
+3
-3
docs/kotlin/4.md
docs/kotlin/4.md
+7
-7
docs/kotlin/40.md
docs/kotlin/40.md
+1
-1
docs/kotlin/42.md
docs/kotlin/42.md
+1
-1
docs/kotlin/47.md
docs/kotlin/47.md
+1
-1
docs/kotlin/48.md
docs/kotlin/48.md
+1
-1
docs/kotlin/49.md
docs/kotlin/49.md
+1
-1
docs/kotlin/5.md
docs/kotlin/5.md
+7
-7
docs/kotlin/50.md
docs/kotlin/50.md
+1
-1
docs/kotlin/53.md
docs/kotlin/53.md
+1
-1
docs/kotlin/54.md
docs/kotlin/54.md
+2
-2
docs/kotlin/55.md
docs/kotlin/55.md
+1
-1
docs/kotlin/56.md
docs/kotlin/56.md
+2
-2
docs/kotlin/57.md
docs/kotlin/57.md
+1
-1
docs/kotlin/58.md
docs/kotlin/58.md
+1
-1
docs/kotlin/59.md
docs/kotlin/59.md
+2
-2
docs/kotlin/61.md
docs/kotlin/61.md
+1
-1
docs/kotlin/64.md
docs/kotlin/64.md
+1
-1
docs/kotlin/66.md
docs/kotlin/66.md
+1
-1
docs/kotlin/79.md
docs/kotlin/79.md
+1
-1
docs/kotlin/80.md
docs/kotlin/80.md
+1
-1
docs/kotlin/9.md
docs/kotlin/9.md
+4
-4
docs/kotlin/97.md
docs/kotlin/97.md
+2
-2
docs/kotlin/99.md
docs/kotlin/99.md
+1
-1
未找到文件。
docs/c/30.md
浏览文件 @
f5fc3c77
...
...
@@ -119,7 +119,7 @@ int main() {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
c
*
ptr
=
3
...
...
docs/java/132.md
浏览文件 @
f5fc3c77
...
...
@@ -76,7 +76,7 @@ public class Prime {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
33
is
not
a
prime
number
.
...
...
docs/java/133.md
浏览文件 @
f5fc3c77
...
...
@@ -101,7 +101,7 @@ public class Fibonacci {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Upto
100
:
0
+
1
+
1
+
2
+
3
+
5
+
8
+
13
+
21
+
34
+
55
+
89
+
...
...
docs/java/135.md
浏览文件 @
f5fc3c77
...
...
@@ -61,7 +61,7 @@ public class ReverseNumber {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Reversed
Number:
7654321
...
...
docs/java/141.md
浏览文件 @
f5fc3c77
...
...
@@ -82,7 +82,7 @@ public class SwapNumbers {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
--
Before
swap
--
...
...
docs/java/142.md
浏览文件 @
f5fc3c77
...
...
@@ -65,7 +65,7 @@ public class EvenOdd {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Enter
a
number:
13
...
...
docs/java/143.md
浏览文件 @
f5fc3c77
...
...
@@ -60,7 +60,7 @@ public class VowelConsonant {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
z
is
consonant
...
...
docs/java/144.md
浏览文件 @
f5fc3c77
...
...
@@ -67,7 +67,7 @@ public class Largest {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
5.5
is
the
largest
number
.
...
...
docs/java/148.md
浏览文件 @
f5fc3c77
...
...
@@ -55,7 +55,7 @@ public class Alphabet {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
A
is
an
alphabet
.
...
...
docs/java/149.md
浏览文件 @
f5fc3c77
...
...
@@ -64,7 +64,7 @@ public class SumNatural {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Sum
=
1275
...
...
docs/java/150.md
浏览文件 @
f5fc3c77
...
...
@@ -63,7 +63,7 @@ public class Factorial {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Factorial
of
30
=
265252859812191058636308480000000
...
...
@@ -96,7 +96,7 @@ public class Factorial {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Factorial
of
5
=
120
...
...
docs/java/151.md
浏览文件 @
f5fc3c77
...
...
@@ -56,7 +56,7 @@ public class MultiplicationTable {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
9
*
1
=
9
...
...
docs/java/152.md
浏览文件 @
f5fc3c77
...
...
@@ -101,7 +101,7 @@ public class Fibonacci {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Upto
100
:
0
+
1
+
1
+
2
+
3
+
5
+
8
+
13
+
21
+
34
+
55
+
89
+
...
...
docs/java/153.md
浏览文件 @
f5fc3c77
...
...
@@ -65,7 +65,7 @@ public class GCD {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
GCD
=
9
...
...
@@ -103,7 +103,7 @@ public class GCD {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
GCD
=
9
...
...
docs/java/155.md
浏览文件 @
f5fc3c77
...
...
@@ -48,7 +48,7 @@ public class Characters {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
...
...
docs/java/156.md
浏览文件 @
f5fc3c77
...
...
@@ -58,7 +58,7 @@ public class NumberDigits {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Number
of
digits:
6
...
...
docs/java/158.md
浏览文件 @
f5fc3c77
...
...
@@ -61,7 +61,7 @@ public class Power {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Answer
=
81
...
...
@@ -90,7 +90,7 @@ public class Power {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Answer
=
0.012345679012345678
...
...
docs/java/159.md
浏览文件 @
f5fc3c77
...
...
@@ -87,7 +87,7 @@ public class Palindrome {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
11221
is
not
a
palindrome
.
...
...
docs/java/160.md
浏览文件 @
f5fc3c77
...
...
@@ -76,7 +76,7 @@ public class Prime {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
33
is
not
a
prime
number
.
...
...
docs/java/162.md
浏览文件 @
f5fc3c77
...
...
@@ -87,7 +87,7 @@ public class Armstrong {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
1634
is
an
Armstrong
number
.
...
...
docs/java/172.md
浏览文件 @
f5fc3c77
...
...
@@ -72,7 +72,7 @@ public class DecimalBinary {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Step
1
:
19
/
2
,
Remainder
=
1
,
Quotient
=
9
...
...
docs/java/173.md
浏览文件 @
f5fc3c77
...
...
@@ -77,7 +77,7 @@ public class OctalDecimal {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
116
in
octal
=
78
in
decimal
...
...
docs/java/174.md
浏览文件 @
f5fc3c77
...
...
@@ -103,7 +103,7 @@ public class OctalBinary {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
67
in
octal
=
110111
in
binary
...
...
docs/java/191.md
浏览文件 @
f5fc3c77
...
...
@@ -50,7 +50,7 @@ public class Array {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
[
1
,
2
,
3
,
4
,
5
]
...
...
@@ -77,7 +77,7 @@ public class Array {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
[[
1
,
2
],
[
3
,
4
],
[
5
,
6
,
7
]]
...
...
docs/java/192.md
浏览文件 @
f5fc3c77
...
...
@@ -58,7 +58,7 @@ public class TimeString {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
2017
-
07
-
25
...
...
docs/java/193.md
浏览文件 @
f5fc3c77
...
...
@@ -47,7 +47,7 @@ public class Decimal {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
1.346
...
...
docs/java/194.md
浏览文件 @
f5fc3c77
...
...
@@ -75,7 +75,7 @@ public class Concat {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
[
1
,
2
,
3
,
4
,
5
,
6
]
...
...
docs/java/195.md
浏览文件 @
f5fc3c77
...
...
@@ -51,7 +51,7 @@ public class CharString {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
aeiou
...
...
@@ -82,7 +82,7 @@ public class StringChar {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
[
T
,
h
,
i
,
s
,
,
i
,
s
,
,
g
,
r
,
e
,
a
,
t
]
...
...
docs/java/196.md
浏览文件 @
f5fc3c77
...
...
@@ -64,7 +64,7 @@ public class Contains {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
7
is
not
found
.
...
...
@@ -99,7 +99,7 @@ public class Contains {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Four
is
found
.
...
...
docs/java/197.md
浏览文件 @
f5fc3c77
...
...
@@ -77,7 +77,7 @@ public class Null {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
str1
is
null
or
empty
.
...
...
docs/java/198.md
浏览文件 @
f5fc3c77
...
...
@@ -50,7 +50,7 @@ public class CurrentDateTime {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Current
Date
and
Time
is:
2017
-
08
-
02
11
:
29
:
57.401
...
...
@@ -81,7 +81,7 @@ public class CurrentDateTime {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Current
Date
is:
20170802
...
...
@@ -111,7 +111,7 @@ public class CurrentDateTime {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Current
Date
is:
Aug
2
,
2017
11
:
44
:
19
AM
...
...
docs/java/199.md
浏览文件 @
f5fc3c77
...
...
@@ -71,7 +71,7 @@ public class Milliseconds {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
1000000
Milliseconds
=
16
minutes
and
40
seconds
.
...
...
docs/java/202.md
浏览文件 @
f5fc3c77
...
...
@@ -59,7 +59,7 @@ public class ArrayToList {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
[
a
,
b
]
...
...
docs/java/203.md
浏览文件 @
f5fc3c77
...
...
@@ -45,7 +45,7 @@ public class CurrDirectory {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Working
Directory
=
C:
\
Users
\
Admin
\
Desktop
\
currDir
...
...
docs/java/205.md
浏览文件 @
f5fc3c77
...
...
@@ -83,7 +83,7 @@ public class SetArray {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Array:
[
a
,
b
,
c
]
...
...
docs/java/207.md
浏览文件 @
f5fc3c77
...
...
@@ -78,7 +78,7 @@ public class FileString {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
This
is
a
...
...
docs/java/214.md
浏览文件 @
f5fc3c77
...
...
@@ -50,7 +50,7 @@ public class CompareStrings {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Equal
...
...
@@ -86,7 +86,7 @@ public class CompareStrings {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
Not
Equal
...
...
@@ -121,7 +121,7 @@ public class CompareStrings {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
true
...
...
docs/java/217.md
浏览文件 @
f5fc3c77
...
...
@@ -66,7 +66,7 @@ public class Numeric {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
java
-
1234.15
is
a
number
...
...
docs/kotlin/100.md
浏览文件 @
f5fc3c77
...
...
@@ -69,7 +69,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
[1, 2, 3, 4, 5, 6]
...
...
docs/kotlin/101.md
浏览文件 @
f5fc3c77
...
...
@@ -46,7 +46,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
aeiou
...
...
@@ -75,7 +75,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
[T, h, i, s, , i, s, , g, r, e, a, t]
...
...
docs/kotlin/102.md
浏览文件 @
f5fc3c77
...
...
@@ -60,7 +60,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
7 is not found.
...
...
@@ -93,7 +93,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Four is found.
...
...
docs/kotlin/103.md
浏览文件 @
f5fc3c77
...
...
@@ -73,7 +73,7 @@ fun isNullOrEmpty(str: String?): Boolean {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
str1 is null or empty.
...
...
docs/kotlin/105.md
浏览文件 @
f5fc3c77
...
...
@@ -65,7 +65,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
1000000 Milliseconds = 16 minutes and 40 seconds.
...
...
docs/kotlin/109.md
浏览文件 @
f5fc3c77
...
...
@@ -39,7 +39,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Working Directory = C:\Users\Admin\Desktop\currDir
...
...
docs/kotlin/11.md
浏览文件 @
f5fc3c77
...
...
@@ -70,7 +70,7 @@ Negative number
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Negative number
...
...
@@ -119,7 +119,7 @@ fun main(args: Array<String>) {
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
-9 is larger than -11.
...
...
@@ -193,7 +193,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
max = 5
...
...
docs/kotlin/111.md
浏览文件 @
f5fc3c77
...
...
@@ -51,7 +51,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Array: [a, b, c]
...
...
docs/kotlin/113.md
浏览文件 @
f5fc3c77
...
...
@@ -69,7 +69,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
This is a
...
...
docs/kotlin/12.md
浏览文件 @
f5fc3c77
...
...
@@ -121,7 +121,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
A positive number between 10 and 100 (inclusive)
...
...
@@ -160,7 +160,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Bingo! It's eleven.
...
...
docs/kotlin/120.md
浏览文件 @
f5fc3c77
...
...
@@ -44,7 +44,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Equal
...
...
@@ -71,7 +71,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Not Equal
...
...
@@ -109,7 +109,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
true
...
...
docs/kotlin/123.md
浏览文件 @
f5fc3c77
...
...
@@ -62,7 +62,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
-1234.15 is a number
...
...
docs/kotlin/13.md
浏览文件 @
f5fc3c77
...
...
@@ -100,7 +100,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
sum = 5050
...
...
docs/kotlin/14.md
浏览文件 @
f5fc3c77
...
...
@@ -87,7 +87,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
for (i in 1..5) print(i) = 12345
...
...
@@ -113,7 +113,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Ruby
...
...
@@ -139,7 +139,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Ruby
...
...
@@ -163,7 +163,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
K
...
...
@@ -189,7 +189,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
K
...
...
docs/kotlin/15.md
浏览文件 @
f5fc3c77
...
...
@@ -82,7 +82,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Enter a number: 4
...
...
@@ -130,7 +130,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
i = 1; j = 1
...
...
@@ -162,7 +162,7 @@ fun main(args: Array<String>) {
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
i = 1; j = 1
...
...
docs/kotlin/16.md
浏览文件 @
f5fc3c77
...
...
@@ -101,7 +101,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Enter an integer: 4
...
...
@@ -146,7 +146,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
i = 1; j = 1
...
...
docs/kotlin/18.md
浏览文件 @
f5fc3c77
...
...
@@ -106,7 +106,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Printing from callMe() function.
...
...
@@ -141,7 +141,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
result = 15
...
...
@@ -205,7 +205,7 @@ fun main(args: Array<String>) {
fun getName(firstName: String, lastName: String): String = "$firstName $lastName"
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
John Doe
...
...
docs/kotlin/19.md
浏览文件 @
f5fc3c77
...
...
@@ -76,7 +76,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
*
...
...
docs/kotlin/20.md
浏览文件 @
f5fc3c77
...
...
@@ -126,7 +126,7 @@ fun main(args: Array<String>) {
```
When you run the program, the output will be:
运行该程序时,输出为:
```kt
=====
...
...
docs/kotlin/21.md
浏览文件 @
f5fc3c77
...
...
@@ -145,7 +145,7 @@ tailrec fun fibonacci(n: Int, a: BigInteger, b: BigInteger): BigInteger {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
354224848179261915075
...
...
@@ -177,7 +177,7 @@ tailrec fun factorial(n: Int, run: Int = 1): Long {
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Factorial of 5 = 120
...
...
docs/kotlin/23.md
浏览文件 @
f5fc3c77
...
...
@@ -251,7 +251,7 @@ fun main(args: Array<String>) {
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
lamp is off.
...
...
docs/kotlin/24.md
浏览文件 @
f5fc3c77
...
...
@@ -90,7 +90,7 @@ class Person(fName: String, personAge: Int) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
First Name = Joe
...
...
@@ -172,7 +172,7 @@ class Person(_firstName: String = "UNKNOWN", _age: Int = 0) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
First Name = Joe
...
...
@@ -284,7 +284,7 @@ class AuthLog: Log {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
From AuthLog -> Bad Password: 10 times
...
...
docs/kotlin/25.md
浏览文件 @
f5fc3c77
...
...
@@ -117,7 +117,7 @@ class Girl {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Maria: actual age = 15
...
...
docs/kotlin/26.md
浏览文件 @
f5fc3c77
...
...
@@ -233,7 +233,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
My fake age is 26.
...
...
@@ -276,7 +276,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
My fake age is 26.
...
...
@@ -314,7 +314,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
My age is 31.
...
...
docs/kotlin/29.md
浏览文件 @
f5fc3c77
...
...
@@ -134,7 +134,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
23
...
...
@@ -175,7 +175,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
From interface A
...
...
docs/kotlin/30.md
浏览文件 @
f5fc3c77
...
...
@@ -110,7 +110,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Using outer object: Outside Nested class.
...
...
docs/kotlin/31.md
浏览文件 @
f5fc3c77
...
...
@@ -75,7 +75,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
u1: name = John, name = 29
...
...
@@ -97,7 +97,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
User(name=John, age=29)
...
...
@@ -135,7 +135,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
u1 hashcode = 71750738
...
...
@@ -164,7 +164,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
name = John
...
...
@@ -186,7 +186,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
John
...
...
docs/kotlin/33.md
浏览文件 @
f5fc3c77
...
...
@@ -133,7 +133,7 @@ fun main(args: Array<String>) {
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Eating food.
...
...
@@ -171,7 +171,7 @@ fun main(args: Array<String>) {
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
name: Jack, age: 29
...
...
docs/kotlin/36.md
浏览文件 @
f5fc3c77
...
...
@@ -63,7 +63,7 @@ class Point(val x: Int = 0, val y: Int = 10) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
sum = (5, 1)
...
...
docs/kotlin/38.md
浏览文件 @
f5fc3c77
...
...
@@ -46,7 +46,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Current Date and Time is: 2017-08-02 11:29:57.401
...
...
@@ -75,7 +75,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Current Date is: 20170802
...
...
@@ -103,7 +103,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Current Date is: Aug 2, 2017 11:44:19 AM
...
...
docs/kotlin/4.md
浏览文件 @
f5fc3c77
...
...
@@ -160,7 +160,7 @@ fun main(args : Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
-11245
...
...
@@ -181,7 +181,7 @@ fun main(args : Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
100000
...
...
@@ -217,7 +217,7 @@ fun main(args : Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
9999
...
...
@@ -253,7 +253,7 @@ fun main(args : Array<String>) {
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
999.5
...
...
@@ -276,7 +276,7 @@ fun main(args : Array<String>) {
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
19.5
...
...
@@ -307,7 +307,7 @@ fun main(args : Array<String>) {
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
12.2
...
...
@@ -335,7 +335,7 @@ fun main(args : Array<String>) {
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
k
...
...
docs/kotlin/40.md
浏览文件 @
f5fc3c77
...
...
@@ -52,7 +52,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
2017-07-25
...
...
docs/kotlin/42.md
浏览文件 @
f5fc3c77
...
...
@@ -64,7 +64,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Enter a number: 10
...
...
docs/kotlin/47.md
浏览文件 @
f5fc3c77
...
...
@@ -78,7 +78,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
--Before swap--
...
...
docs/kotlin/48.md
浏览文件 @
f5fc3c77
...
...
@@ -58,7 +58,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Enter a number: 13
...
...
docs/kotlin/49.md
浏览文件 @
f5fc3c77
...
...
@@ -47,7 +47,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
z is consonant
...
...
docs/kotlin/5.md
浏览文件 @
f5fc3c77
...
...
@@ -81,7 +81,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Talk is cheap. Show me the code. - Linus Torvalds
...
...
@@ -158,7 +158,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
number = 60
...
...
@@ -204,7 +204,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
-a = -1
...
...
@@ -255,7 +255,7 @@ fun main(args: Array<String>) {
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
b is larger than a.
...
...
@@ -300,7 +300,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
true
...
...
@@ -334,7 +334,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
numbers array contains 4.
...
...
@@ -372,7 +372,7 @@ fun main(args: Array<String>) {
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
2
...
...
docs/kotlin/50.md
浏览文件 @
f5fc3c77
...
...
@@ -59,7 +59,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
5.5 is the largest number.
...
...
docs/kotlin/53.md
浏览文件 @
f5fc3c77
...
...
@@ -53,7 +53,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
-12.3 is a negative number.
...
...
docs/kotlin/54.md
浏览文件 @
f5fc3c77
...
...
@@ -50,7 +50,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
a is an alphabet.
...
...
@@ -74,7 +74,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
C is an alphabet.
...
...
docs/kotlin/55.md
浏览文件 @
f5fc3c77
...
...
@@ -63,7 +63,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Sum = 1275
...
...
docs/kotlin/56.md
浏览文件 @
f5fc3c77
...
...
@@ -61,7 +61,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Factorial of 30 = 205891132094649000000000000000000000000000000
...
...
@@ -91,7 +91,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Factorial of 5 = 120
...
...
docs/kotlin/57.md
浏览文件 @
f5fc3c77
...
...
@@ -55,7 +55,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
9 * 1 = 9
...
...
docs/kotlin/58.md
浏览文件 @
f5fc3c77
...
...
@@ -97,7 +97,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Upto 100: 0 + 1 + 1 + 2 + 3 + 5 + 8 + 13 + 21 + 34 + 55 + 89 +
...
...
docs/kotlin/59.md
浏览文件 @
f5fc3c77
...
...
@@ -62,7 +62,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
GCD = 9
...
...
@@ -96,7 +96,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
GCD = 9
...
...
docs/kotlin/61.md
浏览文件 @
f5fc3c77
...
...
@@ -48,7 +48,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
a b c d e f g h i j k l m n o p q r s t u v w x y z
...
...
docs/kotlin/64.md
浏览文件 @
f5fc3c77
...
...
@@ -51,7 +51,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Answer = 0.012345679012345678
...
...
docs/kotlin/66.md
浏览文件 @
f5fc3c77
...
...
@@ -64,7 +64,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
33 is not a prime number.
...
...
docs/kotlin/79.md
浏览文件 @
f5fc3c77
...
...
@@ -71,7 +71,7 @@ fun convertOctalToDecimal(octal: Int): Int {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
116 in octal = 78 in decimal
...
...
docs/kotlin/80.md
浏览文件 @
f5fc3c77
...
...
@@ -96,7 +96,7 @@ fun convertOctalToBinary(octalNumber: Int): Long {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
67 in octal = 110111 in binary
...
...
docs/kotlin/9.md
浏览文件 @
f5fc3c77
...
...
@@ -52,7 +52,7 @@ fun main(args : Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
1\. println
...
...
@@ -76,7 +76,7 @@ fun main(args : Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
score
...
...
@@ -107,7 +107,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Enter text: Hmm, interesting!
...
...
@@ -154,7 +154,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
Enter a number: -12
...
...
docs/kotlin/97.md
浏览文件 @
f5fc3c77
...
...
@@ -44,7 +44,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
[1, 2, 3, 4, 5]
...
...
@@ -70,7 +70,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
[[1, 2], [3, 4], [5, 6, 7]]
...
...
docs/kotlin/99.md
浏览文件 @
f5fc3c77
...
...
@@ -41,7 +41,7 @@ fun main(args: Array<String>) {
}
```
When you run the program, the output will be:
运行该程序时,输出为:
```
kt
1.346
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录