import javax.measure.Quantity;
import javax.measure.quantity.Length;
import javax.measure.unit.SI;
import org.jscience.physics.model.RelativisticModel;
public class MeasurementExample {
public static void main(String[] args) {
RelativisticModel.select();
Quantity<Length> length = QuantityFactory.getInstance(Length.class).create(1, SI.METER);
Quantity<Length> kilometerLength = length.to(SI.KILOMETER);
}
}