Search:

Type: Posts; User: pottsiex5

Search: Search took 0.18 seconds.

  1. Replies
    9
    Views
    1,336

    Re: binarySearch troubles

    ThankYou, I figured out what was wrong with it.
  2. Replies
    9
    Views
    1,336

    Re: binarySearch troubles

    No, how do i do that? (I use BlueJ, btw)
  3. Replies
    9
    Views
    1,336

    Re: binarySearch troubles

    My problem is, that in the method that checks if the string matches the array slot, it adds 1 to the return value, even if it is equal to it... So it will always add it to the array even though its...
  4. Replies
    9
    Views
    1,336

    Re: binarySearch troubles

    So, the method checks to see if the string matches with a slot in the array, or array[counter]. If the string and the array slot are not equal, it adds 1 to the value that gets returned. If the value...
  5. Replies
    9
    Views
    1,336

    Re: binarySearch troubles

    Hey,
    I made a new method for it:

    import java.util.Arrays;
    import java.util.Random;
    import java.lang.StringBuilder;
    public class StringScramble
    {

    public static void main (String[]...
  6. Replies
    9
    Views
    1,336

    binarySearch troubles

    Hi,
    Im making a program that scrambles a word into all the possible permutations. So i swap letters in the string randomly to make a new string. I then want to search the array to see if that string...
Results 1 to 6 of 6