Skip to content

Commit ed363eb

Browse files
committed
Java第二十天
1 parent ba0882f commit ed363eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1028
-0
lines changed

day20/IO流概述及分类.bmp

2.24 MB
Binary file not shown.

day20/code/day20_DiGui/.classpath

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
5+
<classpathentry kind="output" path="bin"/>
6+
</classpath>

day20/code/day20_DiGui/.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>day20_DiGui</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
4+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=1.7
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
8+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
11+
org.eclipse.jdt.core.compiler.source=1.7
519 Bytes
Binary file not shown.
945 Bytes
Binary file not shown.
1.14 KB
Binary file not shown.
1.42 KB
Binary file not shown.
1.68 KB
Binary file not shown.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
package cn.itcast_01;
2+
3+
/*
4+
* 递归:方法定义中调用方法本身的现象
5+
*
6+
* 注意事项:
7+
* A:递归一定要有出口,否则就是死递归
8+
* B:递归的次数不能过多,否则内存溢出
9+
* C:构造方法不能递归使用
10+
*
11+
* StackOverflowError:当应用程序递归太深而发生堆栈溢出时,抛出该错误。
12+
*
13+
* 举例:
14+
* 从前有座山,山上有座庙,庙里有个老和尚,正在给小和尚讲故事,故事是:
15+
* 从前有座山,山上有座庙,庙里有个老和尚,正在给小和尚讲故事,故事是:
16+
* 从前有座山,山上有座庙,庙里有个老和尚,正在给小和尚讲故事,故事是:
17+
* 从前有座山,山上有座庙,庙里有个老和尚,正在给小和尚讲故事,故事是:
18+
* ...
19+
*
20+
* 学java -- 找工作 -- 挣钱 -- 娶媳妇 -- 生娃娃 -- 放羊 -- 挣钱 --
21+
* 学java -- 找工作 -- 挣钱 -- 娶媳妇 -- 生娃娃 -- 放羊 -- 挣钱 --
22+
* 学java -- 找工作 -- 挣钱 -- 娶媳妇 -- 生娃娃 -- 放羊 -- 挣钱 --
23+
* ...
24+
*/
25+
public class DiGuiDemo {
26+
public void show() {
27+
show();
28+
}
29+
30+
// public DiGuiDemo() {
31+
// DiGuiDemo();
32+
// }
33+
34+
public static void main(String[] args) {
35+
DiGuiDemo dgd = new DiGuiDemo();
36+
dgd.show();
37+
}
38+
}

0 commit comments

Comments
 (0)