Yea my thoughts exactly are that loanBook should ideally be a method to loan a book and this is the part creating most of the problems. Well its due to be handed in today so i will make a few last...
Type: Posts; User: drunkinduncan
Yea my thoughts exactly are that loanBook should ideally be a method to loan a book and this is the part creating most of the problems. Well its due to be handed in today so i will make a few last...
Thanks Greg. Yea normally that's the way i would have went about this but it's an assignment and we've been given instructions to have a main application class, a loanBook class, a Fiction and...
Ok here's what i have ended up with. Still doesn't seem right to me so any suggestions would be appreciated. Should i have 2 more arrays for fiction and non-fiction?
public class MainMenu
{
...
Thanks its looking good now. Il give the rest a go now
public class LoanBook
{
String title, author;
int bookId;
static int count=1;
private Pupil pupil;
public LoanBook (String title, String author)
{
it says 'cannot resolve symbol status'. it also says (in the addBook option) 'the variable status is never used'
Ok iv done this but i know im missing something here as the word status in the if statement is highlighted in red?
public class BookArray
{
static Scanner keyboard = new...
i followed your advice but how do i check the status. im thinking along the lines of the following but what condition do i use in the if statement?
public String displayAvailableBooks ()
...
Hi aussiemcgr.
Yea i created a status so that the following can happen. When a new book is added the status is 'available'. If the book is taken on loan then it should change to 'borrowed'. Just not...
Hey everyone and thanks for taking the time to read my 1st post. Quite new to java and would appreciate if anyone could help me out with the following problems in my program. I am designing a program...