public void displayBorrowing() {
		int borid;
		int bid;
		int callNo;
		int copyNo;
		Date outDate;
		Date inDate;
		Statement stmt;
		ResultSet rs;
		
		try {
			stmt = con.createStatement();
			rs = stmt.executeQuery("SELECT * FROM borrowing");
			ResultSetMetaData rsmd = rs.getMetaData();
			int numCols = rsmd.getColumnCount();

			System.out.println(" ");
			
			for (int i = 0; i < numCols; i++)
			{
		      // get column name and print it
		      System.out.printf("%-20s", rsmd.getColumnName(i+1));    
			}
			
			while(rs.next()) {
				borid = rs.getInt("borrowing_borid");
			    System.out.printf("\n%-20.20s", borid);
			    
			    bid = rs.getInt("borr_bid");
			    System.out.printf("%-20.20s", bid);
			    
			    callNo = rs.getInt("book_callNo");
			    System.out.printf("%-20.20s", callNo);
			    
			    copyNo = rs.getInt("bookCopy_copyNo");
			    System.out.printf("%-20.20s", copyNo);
			    
			    outDate = rs.getDate("borrowing_outDate");
			    System.out.printf("%-20.20s", outDate);
			    
			    inDate = rs.getDate("borrowing_inDate");
			    System.out.printf("%-20.20s", inDate);
			 
			}
			stmt.close();
		}
		catch (SQLException ex)
		{
		    System.out.println("Message: " + ex.getMessage());
		}
	}