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

This preview shows page 1 - 2 out of 2 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.pkg7_main; /** * * @author Andrew Khan */import java.util.*; public class Assignment7_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; } @Override public String toString()

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture