一、eclipse快捷键
- ctrl + / 注释:单行注释
- ctrl + shift + /:多行注释
- alt + /:自动出现后头的
- ctrl + I:自动对齐
- sysout 按alt + /:System.out.println();
- ctrl + @ 按完之后放开,按L:自动添加返回的东西
二、一些代码
public class Basic {
public static void main(String[] args) {
System.out.println("hello");
Basic findArray = new Basic();
findArray.aa();
Basic wanghao = new Basic();
Basic wanghao1 = new Basic();
String string = findArray.get();
System.out.println("string: "+ string);
String stringaa = findArray.getaa("I");
System.out.println(stringaa);
}
public void aa() {
System.out.println("aa");
}
public String get() {
return "ss";
}
public String getaa(String st) {
return st + " like you";
}
}