/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lmsjap;

/**
 *
 * @author bina
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Item[] myLib = new Item[3];
        // populate this library
        myLib[0]= new Item(); // instatiate an object of type Item
        myLib[0].setCategory("Book1");
        myLib[0].setNumAvail(2);
        
        myLib[1] = new Item("MagazineEL",2);
        myLib[2] = new Item("JounralComm",10);
        
        myLib[2].setNumAvail(5);
        
        Borrower[] student = new Borrower[1];
        student[0] = new Borrower();
        student[0].setName("Vinay");
        student[0].setEmail("anipindi@buffalo.edu");
        student[0].setPersonNo(56);
        
        Reservation r = new Reservation();
        
        r.setB(student[0]);
        Item wantItem = new Item("Book1",1);
        r.setOneItem(wantItem);
        
        System.out.println("This Reservation is for " + r);
        
        
        
    }

}
