Search:

Type: Posts; User: jaydac12

Search: Search took 0.13 seconds.

  1. Replies
    26
    Views
    3,307

    Re: Help With My Library Program please.

    i finally did it ! thank god ! and thank you ! you really helped me a lot thanks ! \:D/\:D/\:D/

    but somehow some of my code cant catch exceptions...
  2. Replies
    26
    Views
    3,307

    Re: Help With My Library Program please.

    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */

    /**
    *
    * @author Jaymark
    */
    import javax.swing.*;
  3. Replies
    26
    Views
    3,307

    Re: Help With My Library Program please.

    the String will contain the name of the book.



    i tried rewriting my code here's what i came up with:


    /*
    * To change this template, choose Tools | Templates
    * and open the template in...
  4. Replies
    26
    Views
    3,307

    Re: Help With My Library Program please.

    the purpose of the comparison is to find matches in the array,
    and the String contains the user's input
  5. Replies
    26
    Views
    3,307

    Re: Help With My Library Program please.

    so that the user could input a book and the searchBook() method would find matches in the array,

    yes i know how to define an array, so it would be like this?
    Book[] bookName = new Book[10];

    so...
  6. Replies
    26
    Views
    3,307

    Re: Help With My Library Program please.

    i want to compare it to string,
    but how am i going to make an array of the Book class?
  7. Replies
    26
    Views
    3,307

    Re: Help With My Library Program please.

    yes because i will be needing it to be in inside my if condition using equalsIgnoreCase()
  8. Replies
    26
    Views
    3,307

    Re: Help With My Library Program please.

    if i do that the type would be "Book" not string,
  9. Replies
    26
    Views
    3,307

    Re: Help With My Library Program please.

    an ArrayList maybe? but how?
  10. Replies
    26
    Views
    3,307

    Re: Help With My Library Program please.

    yes the addBook() method will be in my Library class,

    ah i see but can i turn this piece of code to an array?


    Book book1 = new Book("Hunger Games");
    Book book2 = new...
  11. Replies
    26
    Views
    3,307

    Re: Help With My Library Program please.

    i want my addBook() method in a separate class like my other methods in my program,
    the array should be on the Library class of my code,
    yes data must be put in a class before the addBook() method...
  12. Replies
    26
    Views
    3,307

    Re: Help With My Library Program please.

    sorry bout that. add() method will we in a separate class, and it will accept data from the user such as the string name,author,publisher and int ID. and the add() method would store these data's in...
  13. Replies
    26
    Views
    3,307

    Re: Help With My Library Program please.

    the "add book function" can be displayed and can be borrowed and returned, it will take a String title,author,publisher and an int book id. but i still don't have any idea on starting this part of my...
  14. Replies
    26
    Views
    3,307

    Help With My Library Program please.

    here's my beta program, where the user can search,rent, and borrow books. but it's only virtual memory, but that's okay. but my problem is it still needs an "add book function" and i have no idea on...
Results 1 to 14 of 15