Hi i am trying to write a search function and the question i have is this, when i do something like this
comix[0] = new Comic("book title", "Author", "isbn", 454.24F);
for (int i = 0; i < comix.length; i++)
{
Scanner console = new Scanner(System.in
Scanner console = new Scanner(System.in);
String temp = console.nextLine();
if ( temp.equals(comix[i].booktitle)){
// print any thing that the user entered
and if the book title is something like "animals" and if i type in animal it does not show up. what i want to make is a search function that will allow me to search any amounts of arrays like the above with many parameters of book title, author etc and if the user enters something like "and" i want everything in all of my arrays that contain "and" to show up. im not sure if i should use arrays or a list or even vectors
plss help