All pastes #616201 Raw Edit

Miscellany

public java v1 · immutable
·published 2007-07-12 14:47 UTC
rendered paste body
import java.awt.Rectangle;public class PrintArea {  public static void main (String [] args) {    Rectangle box = new Rectangle(5, 10, 15, 20);    double area = box.getHeight() * box.getWidth();    System.out.println("Area: " + area);  }}