All pastes #469565 Raw Edit

Anonymous

public java v1 · immutable
·published 2007-05-03 20:09 UTC
rendered paste body
 double width;		public Rectangle()	{		 length = 4;		 width = 8;	}		public Rectangle (double length, double width)	{		this.length = length;		this.width = width;	}		public double calcArea()	{		return (length * width);	}		public void doubleFactors(double mult)	{		length = length * mult;		width = width * mult;	}		public String toString()	{		return("Length: " + length + " Width: " + width);	}}