Skip to content

Commit ecaf465

Browse files
committed
Java第十一天
1 parent 5318c3d commit ecaf465

21 files changed

+496
-0
lines changed

day11/Eclipse的基本使用.txt

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
1:����ʹ��
2+
A:ѡ��һ�������ռ�
3+
D:\develop\eclipse-SDK-3.7.2-win64\workspace
4+
B:���дһ��HelloWorld����(��������ĿΪ������λ)
5+
a:������Ŀ(����)
6+
*File -- New -- Java Project
7+
*����߿հ״���ֱ���Ҽ� -- New -- Java Project
8+
9+
������Ŀ���ƺ�ֱ��Finish��
10+
b:���е�java�ļ�����д��src�������Ч
11+
c:����һ����
12+
cn.itcast
13+
d:�ڰ��´���һ����
14+
HelloWorld
15+
16+
ͬʱ����������д����main������
17+
e:��main������д���ݼ���
18+
f:�������
19+
�Զ����룬�ڱ������һ�̰���������
20+
g:�����
21+
ѡ��Ҫ���е��ļ�������Ҫ���е��ļ�������
22+
�Ҽ� -- Run as - Java Application����
23+
h:������ʾ
24+
��Console����̨��ʾ����
25+
26+
2:Eclipse��������
27+
A:����ı�������еĻ�������(������Eclipse����û�����⣬�Ͳ�Ҫ������)
28+
B:ȥ��Ĭ��ע��(���Բ��ø�)
29+
C:�кŵ���ʾ������
30+
��ʾ���ڴ������������ߵĿհ������Ҽ� -- Show Line Numbers���ɡ�
31+
���أ�������Ķ�������һ�Ρ�
32+
D:�����С����ɫ
33+
a:Java��������������С����ɫ��
34+
window -- Preferences -- General -- Appearance -- Colors And Fonts -- Java�޸� -- Java Edit Text Font
35+
b:����̨
36+
window -- Preferences -- General -- Appearance -- Colors And Fonts -- Debug -- Console font
37+
c:�����ļ�
38+
window -- Preferences -- General -- Appearance -- Colors And Fonts -- Basic -- Text Font
39+
E:�����Ū���ˣ���ô��
40+
window -- Reset Perspective
41+
F:����̨�Ҳ�����
42+
Window--Show View��Console
43+
44+
3:��ݼ���ʹ��
45+
A:���ݸ�����
46+
Alt+/ ����ʾ����
47+
main+alt+/,syso+alt+/,����������ʾ
48+
B:��ݼ�
49+
��ʽ�� ctrl+shift+f
50+
����� ctrl+shift+o
51+
ע�� ctrl+/
52+
ctrl+shift+/,ctrl+shift+\
53+
���������ƶ� ѡ�д���alt+��/�¼�ͷ
54+
�鿴Դ�� ѡ������(F3����Ctrl+�����)
55+
56+
4:Eclipse�������߿���Ч��
57+
A:�Զ����ɹ��췽��
58+
a:�޲ι��췽�� �ڴ��������Ҽ�--source--Generate Constructors from Superclass
59+
b:���ι��췽�� �ڴ��������Ҽ�--source--Generate Constructors using fields.. -- finish
60+
B:�Զ�����get/set����
61+
�ڴ��������Ҽ�--source--Generate Getters and Setters...

day11/code/day11_Object/.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>

day11/code/day11_Object/.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>day11_Object</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
1.12 KB
Binary file not shown.
1.14 KB
Binary file not shown.
270 Bytes
Binary file not shown.
1.21 KB
Binary file not shown.
891 Bytes
Binary file not shown.
1.02 KB
Binary file not shown.

0 commit comments

Comments
 (0)