Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * 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 exam1retake;
- import javax.swing.JOptionPane;
- /**
- *
- * @author localstudent
- */
- public class BookTest {
- static private String title;
- static private String author;
- static private int pages;
- public static void main(String[] args) {
- title = JOptionPane.showInputDialog(null, "Title:");
- author = JOptionPane.showInputDialog(null, "Author:");
- pages = Integer.parseInt(JOptionPane.showInputDialog(null, "Pages:"));
- Book bookCopy = new Book(title, author, pages);
- System.out.println(bookCopy.toString());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement