Search:

Type: Posts; User: andbin

Search: Search took 0.14 seconds.

  1. Replies
    5
    Views
    904

    Re: Problem with a binary search

    An int is not an object ..... ;)
    Compare ints simply using relational operators (< , > , etc ...)
  2. Replies
    5
    Views
    904

    Re: Problem with a binary search

    If the variable is int[], you must instantiate an int[] .... not an Integer[]. And the syntax is also wrong for 2 reasons:
    a) The '=' before '{' is wrong.
    b) If you specify the size in [ ] you...
Results 1 to 2 of 2