Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class OP1 {
- public static void main(String[] args) throws Exception {
- Book myBook = new Book();
- myBook.title = "A Study in Scarlet";
- myBook.author = "Sir Arthur Conan Doyle";
- myBook.pages = 106;
- myBook.currentPage = 85;
- myBook.printInfo();
- myBook.nextPage();
- System.out.println(myBook.currentPage);
- myBook.skipPages(12);
- System.out.println(myBook.currentPage);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement