?? test.java
字號(hào):
// Test.java
// Point類測(cè)試程序
import javax.swing.JOptionPane;
//import com.deitel.jhtp3.ch09.Point;
public class Test {
public static void main( String args[] )
{
Point p = new Point( 72, 115 );
String output;
output = "X coordinate is " + p.getX() +
"\nY coordinate is " + p.getY();
p.setPoint( 10, 10 );
// 使用隱含引用 p.toString()
output += "\n\nThe new location of p is " + p;
JOptionPane.showMessageDialog( null, output,
"Demonstrating Class Point",
JOptionPane.INFORMATION_MESSAGE );
System.exit( 0 );
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -