All pastes #469559 Raw Edit

Miscellany

public java v1 · immutable
·published 2007-05-03 20:05 UTC
rendered paste body
public class Rectangle{	private double length;	private 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()	{		length = length * 2;		width = width * 2;	}		public String toString()	{		return("Length: " + length + " Width: " + width);	}}