Search:

Type: Posts; User: mspray

Search: Search took 0.07 seconds.

  1. Replies
    2
    Views
    2,036

    Re: Need help with assignment

    Yes this definitely worked for me, so all you would have to do is adapt this little bit of code to your use.



    int[] myArray = {1, 2, 3, 6, 8, 20, 25, 36, 39};
    int position =...
  2. Replies
    2
    Views
    2,036

    Re: Need help with assignment

    you may be able to use the binary search function "public static int binarySearch(short[] a, short key)" short[] a is the array to search in and short key is the value to search for. The only catch...
Results 1 to 2 of 2