Display Item Type(Vardhan Raju);PART 2

 NOW YOU HAVE TO CLICK ON main.java

import java.io.*;

import java.util.Scanner;


class Main{
    public static void main(String[] args) throws Exception{ 

        //Fill your code    
        Scanner sc = new Scanner(System.in);
        ItemType it = new ItemType();
        System.out.println("Enter the item type name");
        String name = sc.nextLine();
        it.setName(name);
        System.out.println("Enter the cost per day");
        double costPerDay = sc.nextDouble();
        it.setCostPerDay(costPerDay);
        System.out.println("Enter the deposit");
        double deposit = sc.nextDouble();
        it.setDeposit(deposit);
        it.display();
        
                

    }
}

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.