All pastes #895779 Raw Edit

Mine

public java v1 · immutable
·published 2008-02-08 02:05 UTC
rendered paste body
/* default package */public class Rectangle extends java.lang.Object{    /* Fields */    private double x;    private double y;    private double w;    private double h;    /* Constructors */    public Rectangle(double xpos, double ypos, double width, double height) {		x = xpos;		y = ypos;		w = width;		h = height;    }    /* Methods */    public double getX() {		return x;    }    public double getY() {		return y;    }    public double getWidth() {		return w;    }    public double getHeight() {		return h;    }    public double getArea() {		return w*h;    }    public static Rectangle intersection(Rectangle r1, Rectangle r2) {		    }    public java.lang.String toString() {    }}