All pastes #2080266 Raw Edit

Untitled

public java v1 · immutable
#2080266 ·published 2011-09-07 18:43 UTC
rendered paste body
public class Rectangle{	private double height;	private double width;	public Rectangle(double height,double width)	{		this.height=height;		this.width=width;	}	public double getHeight()	{		return this.height;	}	public double getWidth()	{		return this.width;	}	public void setHeight(double newHeight)	{		this.height=newHeight;	}	public void setWidth(double newWidth)	{		this.width=newWidth;	}	public String toString()	{		return "Height:"+this.height+" "+"Width:"+this.width;	}	public void IncreaseHeight(double by)	{		this.height=this.height+by;	}	public void equalz(Rectangle rec)	{		if(this.width*this.height>rec.width*rec.height)			System.out.println("rec>rec1");		else			System.out.println("rec<rec1");	}}