Ok, So my class is working and compiling, but I cant seem to fix the error in my tester. Im taking
java at school and I've been working on this all day since 7am, a good 5-7hours and my teachers not really responding. Im not asking to be given the answer, but Im just tired of this program at this point. I've googled and googled and nothing, so if anyone could please help me by showing me where I messed up or telling me where to look. I would be Sooooooooooo Thankful.
I mean Im close right? I just cant seem to figure it out.
oh yeah my error is, but before I added the title,author,price to the new constructor, it keep erroring at new Book().
BookTester.java:15: cannot find symbol
symbol : variable title
location: class BookTester
Book book = new Book (title,author,price);
^
BookTester.java:15: cannot find symbol
symbol : variable author
location: class BookTester
Book book = new Book (title,author,price);
^
BookTester.java:15: cannot find symbol
symbol : variable price
location: class BookTester
Book book = new Book (title,author,price);
^
3 errors
Solved by moving Book book = new Book(); to after the reader lines had been stored that way the book had a reason to exist.