ThankYou, I figured out what was wrong with it.
Type: Posts; User: pottsiex5
ThankYou, I figured out what was wrong with it.
No, how do i do that? (I use BlueJ, btw)
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...
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...
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[]...
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...