import org.unitsofmeasurement.quantity.Length; import org.unitsofmeasurement.unit.SI; import tec.units.ri.quantity.Quantities; public class MeasurementExample { public static void main(String[] args) { Length length = Quantities.getQuantity(10, SI.METRE); double feet = length.to(SI.FOOT).getValue(); } }


上一篇:
下一篇:
切换中文