Assignment8_main.java - To change this license header...

This preview shows page 1 - 3 out of 4 pages.

/** To change this license header, choose License Headers in Project Properties.* To change this template file, choose Tools | Templates* and open the template in the editor.*/package assignment.pkg8_main;/**** @author Andrew Khan*/import java.util.*;*/import packageName.SuperclassName;public class Assignment8_main {/*** @param args the command line arguments*/class Asset{private String type;private int id;private String name;private String serial;private int pid;public Asset(){type = "";id = 0;name = "";serial = "";pid = -1;}public void setType(String type){this.type = type;}public String getType(){return this.type;}public void setName(String name){this.name = name;}public String getName(){return this.name;}public void setSerial(String serial){this.serial = serial;}public String getSerial(){return this.serial;}public void setId(int id){this.id = id;}public int getId(){return this.id;
}public void setPid(int pid){this.pid = pid;}public int getPid(){return this.pid;}@Overridepublic String toString(){return "\n\n Type: " + getType() + " \n ID: " + getId() + " \n Name: " +

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture