Skip to content

Commit d5994a4

Browse files
author
jianqiaozhang
committed
Initial commit
0 parents  commit d5994a4

File tree

15 files changed

+565
-0
lines changed

15 files changed

+565
-0
lines changed

.idea/dataSources.xml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/dataSources/76c07c60-3276-4b8d-986d-35cf8ce88cb8.xml

Lines changed: 141 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/dataSources/76c07c60-3276-4b8d-986d-35cf8ce88cb8/storage_v2/_src_/schema/ZJQ.IVsBAA.meta

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

JavaStudy.iml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>

keymapstudy/keymapstudy.iml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>

keymapstudy/src/study/DebugTest.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package study;
2+
3+
import java.util.HashMap;
4+
5+
/**
6+
* @author shkstart
7+
* @date 2018/7/13 0013 - 下午 6:28
8+
*/
9+
public class DebugTest {
10+
11+
public static void main(String[] args){
12+
13+
for (int i = 0; i < 100; i++) {
14+
System.out.println(i); }
15+
16+
17+
HashMap<String, String> map = new HashMap<>();
18+
map.put("name","Tom");
19+
map.put("age","12");
20+
map.put("school","Tsinghua");
21+
map.put("major","computer");
22+
23+
String age = map.get("age");
24+
System.out.println("age = " + age);
25+
26+
map.remove("major");
27+
System.out.println(map);
28+
29+
}
30+
}

keymapstudy/src/study/Hello.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package study;
2+
3+
/**
4+
* @author shkstart
5+
* @date 2018/7/12 0012 - 下午 3:21
6+
*/
7+
public class Hello {
8+
public static void main(String[] args)
9+
{
10+
String age = "10";
11+
System.out.println(age);
12+
// System.out.println("age = " + age);
13+
}
14+
}

keymapstudy/src/study/HelloWorld.java

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
package study;
2+
3+
4+
import java.io.FileInputStream;
5+
import java.io.FileNotFoundException;
6+
import java.util.ArrayList;
7+
import java.util.Date;
8+
9+
/*
10+
快捷键的使用:
11+
1 执行(run) alt+r
12+
2 提示补全 (Class Name Completion) alt+/
13+
3 单行注释 ctrl + /
14+
4 多行注释 ctrl + shift + /
15+
5 向下复制一行 (Duplicate Lines) ctrl+alt+down
16+
6 删除一行或选中行 (delete line) ctrl+d
17+
7 向下移动行(move statement down) alt+down
18+
8 向上移动行(move statement up) alt+up
19+
9 向下开始新的一行(start new line) shift+enter
20+
10 向上开始新的一行 (Start New Line before current) ctrl+shift+enter
21+
11 如何查看源码 (class) ctrl + 选中指定的结构 或 ctrl + shift + t
22+
12 万能解错/生成返回值变量 alt + enter
23+
13 退回到前一个编辑的页面 (back) alt + left
24+
14 进入到下一个编辑的页面(针对于上条) (forward) alt + right
25+
15 查看继承关系(type hierarchy) F4
26+
27+
16 格式化代码(reformat code) ctrl+shift+F
28+
17 提示方法参数类型(Parameter Info) ctrl+alt+/
29+
18 复制代码 ctrl + c
30+
19 撤销 ctrl + z
31+
20 反撤销 ctrl + y
32+
21 剪切 ctrl + x
33+
22 粘贴 ctrl + v
34+
23 保存 ctrl + s
35+
24 全选 ctrl + a
36+
25 选中数行,整体往后移动 tab
37+
26 选中数行,整体往前移动 shift + tab
38+
27 查看类的结构:类似于eclipse的outline ctrl+o
39+
28 重构:修改变量名与方法名(rename) alt+shift+r
40+
29 大写转小写/小写转大写(toggle case) ctrl+shift+y
41+
30 生成构造器/get/set/toString alt +shift + s
42+
43+
31 查看文档说明(quick documentation) F2
44+
32 收起所有的方法(collapse all) alt + shift + c
45+
33 打开所有方法(expand all) alt+shift+x
46+
34 打开代码所在硬盘文件夹(show in explorer) ctrl+shift+x
47+
35 生成try-catch等(surround with) alt+shift+z
48+
36 局部变量抽取为成员变量(introduce field) alt+shift+f
49+
37 查找/替换(当前) ctrl+f
50+
38 查找(全局) ctrl+h
51+
39 查找文件 double Shift
52+
40 查看类的继承结构图(Show UML Diagram) ctrl + shift + u
53+
41 查看方法的多层重写结构(method hierarchy) ctrl+alt+h
54+
42 添加到收藏(add to favorites) ctrl+alt+f
55+
43 抽取方法(Extract Method) alt+shift+m
56+
44 打开最近修改的文件(Recently Files) ctrl+E
57+
45 关闭当前打开的代码栏(close) ctrl + w
58+
59+
46 关闭打开的所有代码栏(close all) ctrl + shift + w
60+
47 快速搜索类中的错误(next highlighted error) ctrl + shift + q
61+
48 选择要粘贴的内容(Show in Explorer) ctrl+shprivate static int num;ift+v
62+
49 查找方法在哪里被调用(Call Hierarchy) ctrl+shift+h
63+
64+
65+
*/
66+
public class HelloWorld {
67+
68+
private static int num;
69+
70+
public HelloWorld() {
71+
}
72+
73+
74+
private static final int INITIAL_SIZE = 10;
75+
76+
public static void main(String[] args) {
77+
//region Description
78+
ArrayList list1 = getList();
79+
80+
// method1();
81+
82+
System.out.println(list1);
83+
84+
85+
}
86+
87+
public static ArrayList getList() {
88+
System.out.println("helloworld!!");
89+
System.out.println("helloworld!!");
90+
ArrayList list1 = new ArrayList();//ctrl + d
91+
//endregion
92+
93+
/*ArrayList list1 = null;
94+
95+
synchronized ()*/
96+
97+
Date date = new Date();
98+
99+
list1.add(0, 123);
100+
return list1;
101+
}
102+
103+
public static void method1() {
104+
105+
num = 10;
106+
107+
// System.out.println(list1);
108+
try {
109+
FileInputStream fis = new FileInputStream("hello.txt");
110+
} catch (FileNotFoundException e) {
111+
e.printStackTrace();
112+
}
113+
114+
115+
}
116+
117+
}

0 commit comments

Comments
 (0)