?? packagetest.java
字號(hào):
/**
@version 1.11 2004-02-19
@author Cay Horstmann
*/
import com.horstmann.corejava.*;
// the Employee class is defined in that package
import static java.lang.System.*;
public class PackageTest
{
public static void main(String[] args)
{
// because of the import statement, we don't have to
// use com.horstmann.corejava.Employee here
Employee harry = new Employee("Harry Hacker", 50000, 1989, 10, 1);
// raise salary by 5%
harry.raiseSalary(5);
// print out information about harry
// use java.lang.System.out here
out.println("name=" + harry.getName() + ",salary=" + harry.getSalary());
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -