📄 circletest.java
字号:
//CircleTest.java
import javax.swing.JOptionPane;
public class CircleTest {
public static void main( String[] args ){
Point point=new Point(20,30);
Circle circle = new Circle( 37, 43, 2.5 );
String output="The location of point are: "+point.toString();
output+="\nThe location and radius of circle are\n"+circle.toString();
JOptionPane.showMessageDialog( null, output );
System.exit( 0 );
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -