Advertisement
ookhai

Untitled

Jul 1st, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class testLibrary {
  4.  
  5. public static void main(String[] args) {
  6. Books[] booksArr = {new Books("Harry Potter", "\tJ.K ROLLING", "\t\t1st", 1),
  7. new Books("Hello Kitty", "\tJ.K Kitting", "\t\t2nd", 2),
  8. new Books("Harry Kitter", "\tJ.K CASDCDC", "\t\t3rd", 3),
  9. new Books("Harry Popper", "\tJ.K CDDCSWV", "\t\t4th", 4),
  10. new Books("Happy Monter", "\tJ.K UJYUGNH", "\t\t5th", 5),
  11. new Books("Marry kiefer", "\tJ.K CVFBVFF", "\t\t6th", 6)};
  12.  
  13. System.out.println("\nBooks Lists: ");
  14. System.out.println("============================================================================");
  15. System.out.println("No.\tBooks name \t\tBooks author \tBooks edition \tRack number ");
  16. System.out.println("============================================================================");
  17. for (int j = 0; j < booksArr.length; ++j) {
  18. System.out.println((j+1) + ". " + booksArr[j].toString());
  19. }
  20.  
  21.  
  22.  
  23.  
  24.  
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement