#1
| |||
| |||
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 |
#2
| |||
| |||
Re: help with java code Code: public java.lang.Object search(java.lang.Object key) Returns: If the object is found in the tree, return a reference to the object. Otherwise return null.
__________________ Education, Career and Job Discussions |
#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 |
![]() |
|
Tags: code, data, java, java code, java project |
Thread Tools | Search this Thread |
|
![]() | ||||
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 |