Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 22-10-2010
Member
 
Join Date: Oct 2010
Posts: 3
help with java code

i am working on a java project, anyone got an experience on how to code the below description. am trying to read from an exsiting data that contains different item,want to be able to write a code to search through the data.

i am trying to write a method that searches for an item and returns a reference to the object. Use the reference returned by the method to display the object?s data (i.e. item details). If the item is not found then the method should return null and the ?caller? should display an appropriate message, e.g. ?item not found?. [provide output]

thanks for your help
Reply With Quote
  #2  
Old 24-10-2010
Member
 
Join Date: Dec 2007
Posts: 2,273
Re: help with java code

Code:
public java.lang.Object search(java.lang.Object key)
Search for an object in the tree that compares equal to key.
Returns:
If the object is found in the tree, return a reference to the object. Otherwise return null.
Reply With Quote
  #3  
Old 24-10-2010
Member
 
Join Date: Oct 2010
Posts: 3
Re: help with java code

i tried that but that not what i was looking for, what i needed is to read an exsisting file( text.dat)
and b able to search for words in the text file...

thanks
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "help with java code"
Thread Thread Starter Forum Replies Last Post
help me to understand java code (calendar java code) ? so0oma Software Development 2 10-01-2011 12:01 AM
Use Java code in PHP Gajendra1 Software Development 6 12-08-2010 10:18 AM
Need Explanation for java code javainfo Software Development 2 10-12-2009 01:56 AM
Cleaning Up Java Code Namchan Software Development 3 20-04-2009 11:48 AM
Code execution in JAVA jasonR Software Development 1 27-01-2009 01:13 PM


All times are GMT +5.5. The time now is 09:24 PM.