Search:

Type: Posts; User: xJavaLover

Search: Search took 0.06 seconds.

  1. Replies
    7
    Views
    1,508

    Re: Linear Search / Index Location of Strings

    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...
  2. Replies
    7
    Views
    1,508

    Re: Linear Search / Index Location of Strings

    public class Searching
    {
    public static Comparable linearSearch (Comparable[] list, Comparable target)
    {
    int index = 0;
    boolean found = false;

    while (!found && index <...
  3. Replies
    7
    Views
    1,508

    Re: Linear Search / Index Location of Strings

    Ya lost me...lol...so the loop method should work for my application...I don't know how I would go about implementing that.
  4. Replies
    7
    Views
    1,508

    Linear Search / Index Location of Strings

    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...
Results 1 to 4 of 4