Rohit Anand

Greenhorn
+ Follow
since Feb 17, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rohit Anand

well yeah.... but I was wondering if there is nay better way of doing it, then pls share it.
Hey everybody,
I am stuck in between and appreciate your help.
actually my assignment is UrlyBird. I thinking logic for searching records on the basis of creteris been submitted to the public int[] find(String[]) of Db interface.

below written are my thoughts about this, pls help me in improvising it.
  • I have stored all the records in a Arraylist in a form of a class called DBData(which contains the record value and its mark for deletion.)
  • I Iterate all my Arraylist and take out a record , to which I get in form of an String[].
  • Then I start a loop like this
  • Now at this point in time I was thinking of putting the matched record in a seperate String [] and then calling this method again for further filtering of records matched the creteria. But was getting a feeling that there must be a better approach.

    Pls Help...

    Thanx
    Rohit.

    (There is Nothing called BEST in this World, You may have better then best.)

    [Andrew: Put code between UBB [code] and [/code] tags, and numbered list between UBB [list=1] and [/list] tags.]
    [ July 05, 2005: Message edited by: Andrew Monkhouse ]