Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class Conversions {//Begin Class
- public float feettoInch(float feet){//FT to IN Method
- float inch = feet * 12;
- return inch;
- }//End Method
- private float feettoMeters(float feet) {//FT to M Method
- float (float) (feet * 0.3048);
- return meters;
- }//End Method
- private float inchesttoCentimeters(float inches) {//IN to CM Method
- float centimeters = (float)(inches/0.39370);
- return centimeters;
- }//End Method
- private float centimetertoMeter (float centimeter) {//CM to M Method
- float meters = (float)(centimeter/100);
- return meters;
- }//End Method
- public float meterstoFeet (float meters) {//M to FT Method
- float feet = (float)(meters /0.3048);
- return feet;
- }//End Method
- private float metertoCentimeters (float meter) {//M to CM Method
- float centimeters = (float)(meter * 100);
- return centimeters;
- }//End Method
- private float centimetertoinches (float centimeter) {//CM to IN Method
- float inches = (float)(centimeter * 0.39370);
- return inches;
- }//End Method
- private float inchtoFeet (float inches) {//IN to FT Method
- float feet = inches / 12;
- return feet;
- }
- }//End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement