import java.util.*; /** * Created by leon on 1/10/18. */ public class MainApplication { public Inventory market = new Inventory("Market"); public static void main(String [] args) { Scanner scan = new Scanner(System.in); System.out.println("Hello. Which item would you like information on?"); String name = scan.nextLine(); System.out.println("How many of those are in inventory?"); int amount = scan.nextInt(); System.out.println("How much do they cost per item?"); double price = scan.nextDouble(); System.out.println("Your total value is " + (amount * price)); } }