wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes newbee cant find string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "newbee cant find string" Watch "newbee cant find string" New topic

newbee cant find string

scott hanson

Joined: Feb 27, 2004
Posts: 2
In my mock library you can check for a title to borrow(this works),and return "if" you have a book to return.I can check a string in an object(!"".equals(book1.getTitle())).Cant figure out how to check for title if book is borrowed (borrowed object is book object with getTitle method).
???if (!"".equals(patron1.getBorrowed1()))???Im very newbee-ish,Need something like this,I think,maybe,well...er.Something that workd though.

\\my libraryinterface is a huge newbee(helloworld last fall)mess, Hope I pulled the relevant code.thankyou
ps no error message just incorrect results
[ edited to format code and to preserve formatting using the [code] and [/code] UBB tags -ds ]
[ February 28, 2004: Message edited by: Dirk Schreckmann ]

scott hanson
David Peterson
Ranch Hand

Joined: Oct 14, 2001
Posts: 154
I haven't tried to understand your code, but just from the first few lines of your message, is this what you need:
David Peterson
Ranch Hand

Joined: Oct 14, 2001
Posts: 154
You might also like to look at some of the Java collections classes in the java.util.* package, and consider using a List or Set to hold the books.
I agree. Here's the link: http://aspose.com/file-tools
subject: newbee cant find string
Similar Threads
sorting by a primitive int field
new to write code, pls help!
returning user defined objects
toString() method invoked
Storing elements in array list or hash map