circletest.java

来自「《Java面向对象程序设计》例子源代码.轻松学习书本.」· Java 代码 · 共 12 行

JAVA
12
字号
//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 + =
减小字号Ctrl + -
显示快捷键?