SHARE
TWEET

Untitled

a guest Jun 19th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.Scanner;          
  2.  
  3. public class TestDistance1
  4. {
  5.    public static void main(String[] args)
  6.   {
  7.  int feet;
  8.  int yards;
  9.  int miles;
  10.  
  11.  String message;
  12.  
  13.  Distance first = new Distance();
  14.  
  15.  Scanner inData = new Scanner(System.in);
  16.  System.out.println("Enter feet:");
  17.  feet = inData.nextInt();
  18.  System.out.println("Enter yards:");
  19.  yards = inData.nextInt();
  20.  System.out.println("Enter miles:");
  21.  miles = inData.nextInt();
  22.  System.out.println();
  23.  
  24.  first.addDistance(feet, yards, miles);
  25.  
  26.  
  27.  message = first.toString();
  28.  
  29.  System.out.println(message);
  30.  
  31.   }
  32. }
RAW Paste Data
Top