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...
Type: Posts; User: jaydac12
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...
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Jaymark
*/
import javax.swing.*;
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...
the purpose of the comparison is to find matches in the array,
and the String contains the user's input
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...
i want to compare it to string,
but how am i going to make an array of the Book class?
yes because i will be needing it to be in inside my if condition using equalsIgnoreCase()
if i do that the type would be "Book" not string,
an ArrayList maybe? but how?
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...
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...
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...
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...
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...