Search:

Type: Posts; User: drunkinduncan

Search: Search took 0.16 seconds.

  1. Re: Can anyone give me help/advice on this java library program?

    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...
  2. Re: Can anyone give me help/advice on this java library program?

    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...
  3. Re: Can anyone give me help/advice on this java library program?

    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
    {
    ...
  4. Re: Can anyone give me help/advice on this java library program?

    Thanks its looking good now. Il give the rest a go now
  5. Re: Can anyone give me help/advice on this java library program?

    public class LoanBook
    {
    String title, author;

    int bookId;
    static int count=1;
    private Pupil pupil;

    public LoanBook (String title, String author)
    {
  6. Re: Can anyone give me help/advice on this java library program?

    it says 'cannot resolve symbol status'. it also says (in the addBook option) 'the variable status is never used'
  7. Re: Can anyone give me help/advice on this java library program?

    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...
  8. Re: Can anyone give me help/advice on this java library program?

    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 ()
    ...
  9. Re: Can anyone give me help/advice on this java library program?

    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...
  10. Can anyone give me help/advice on this java library program?

    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...
Results 1 to 10 of 10