RectangleTest
//10-2 Rectangleのメインメソッド書いてみた。 public class RectangleTest{ public static void main(String[] args) { Rectangle data = new Rectangle(444,333); System.out.println(data); } } ///////////////////////////////////////// //以下、Rectangleクラス /* public class Rectangle { int width; int height; public Rectangle(int width, int height) { this.width = width; this.height = height; } public String toString() { return "[ " + width + ", " + height + " ]"; } }