Ehhhh sorry guys x.x I totally though I could do this one without help.
Anyway. This class converts metric units to SI I think it's called? And it doesn't convert for some reason

Here's what I have.
CODE
public class Length{
//PRIVATE INSTANCE VARIABLES
private double myNumber;
private double myUnit;
private double inches;
private double feet;
private double yards;
private double miles;
private double meters;
public int inch1;
//CONSTRUCTOR
/** This constructs a length with a number and a unit assigned to it
@param number The number of the length
@param unit The unit of the length
*/
public Length(double number, String unit){
//Constructs a length
//Defines inches, feet, yards, and miles
inches = meters * 39.37;
feet = meters * 39.37 / 12;
yards = meters * 39.37 / 12 / 3;
miles = meters * 39.37 / 12 / 3 * 1760;
inches = getInches();
feet = getFeet();
yards = getYards();
miles = getMiles();
}
//METHODS
/** Calculates the number of inches
@return inches The number of inches
*/
public double getInches(){
//Indicates the number of inches
return inches;
}
/** Calculates the number of feet
@return The number of feet
*/
public double getFeet(){
//Indicates the number of feet
return feet;
}
/** Calculates the number of yards
@return The number of yards
*/
public double getYards(){
//Indicates the number of yards
return yards;
}
/** Calculates the number of miles
@return The number of miles
*/
public double getMiles(){
//Indicates the number of miles
return miles;
}
/** Sets the number for the length
@param number The length's number
*/
public void setNumber(double number){
//Assigns a number to the length
}
/** Sets the unit for the length's number
@param unit The unit of the length's number
*/
public void setUnit(String unit){
//Assigns a unit to the length's number
}
/** Constructs a string to represent the numbers
@param s The String
*/
public String toString(){
//Makes a string that looks like:
//There are "..." meters in a yard
String s = meters + "---";
s += inches;
s += feet;
s += yards;
s += miles;
s += meters;
return s;
}
}
I couldn't figure out the method bodies for setNumber and setUnit, that may be my only problem...