Sign in to follow this  

i need someone help me in eclipse

This topic is 831 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey there 

I want do two methods first one 

Search method 

A method with the following header declaration:

public boolean search(E e)

The method search the specific element into the list and if exists returns true else false
For example if we have a list with the following data: 10,12,15,20,25,27
and we call search(12) the method return true
 
another one is Insert.
A method with the following header declaration: 
public void sortInsert(E e) 
The method inserts the element e into the list in the right (sorted) order.
For example if we have a list with the following data: 10,12,15,20,25,27
and we call sortInsert (23) the list will become: 10,12,15,20,23,25,27
 
please help me or give me hint.
 

 

Share this post


Link to post
Share on other sites
Sorry, looks too much like homework.

Java collections support the functions built in.

For guidance, nearly every data structures and basic algorithms book has these problems in assignments, read the books to find the logic.

From the FAQ: Do not ask homework related questions, they will be closed on sight.

Share this post


Link to post
Share on other sites

This topic is 831 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this