I understand what you're saying...I used that call...I kept my loop...I know I have to change the type because String target wont work with an integer (threw an error) I don't know how I can look for...
Type: Posts; User: xJavaLover
I understand what you're saying...I used that call...I kept my loop...I know I have to change the type because String target wont work with an integer (threw an error) I don't know how I can look for...
public class Searching
{
public static Comparable linearSearch (Comparable[] list, Comparable target)
{
int index = 0;
boolean found = false;
while (!found && index <...
Ya lost me...lol...so the loop method should work for my application...I don't know how I would go about implementing that.
I have an array and in this array it contains strings like so:
Contact[] guys = new Contact[8];
guys[0] = new Contact ("Rob", "Smith", "610-555-7384");
This is just an example of...