Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1.  
  2. public class TestBook
  3. {
  4.  
  5.     public static void main(String[] args)
  6.     {
  7.         String Title;
  8.         String Category;
  9.         String Author;
  10.         String Publisher;
  11.         int ISBN_13=0;
  12.         int Pages=0;
  13.         double Price=0;
  14.         double Difference=0;
  15.        
  16.         Title = "The Library of Greek Mythology";
  17.         Category = "Mythology";
  18.         Author = "Apollodorus";
  19.         ISBN_13 = 1229;
  20.         Publisher = "Oxford University Press";
  21.         Pages = 336;
  22.         Price = 13.95;
  23.        
  24.         Book BookA = new Book(Title, Category, Author, ISBN_13, Publisher, Pages, Price);
  25.        
  26.         }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement