Hi,
I am building an anagram tester. We are not allowed to use any of the Compare classes Java has, soooo I am building a method converting the characters in an array to ints and then comparing them. This is what i have (see below). I get an error of incompatible types when I try to compile and I know I need to move the numeric values into the array to replace the numbers, but I'm not sure how to move them in...I know that it's there somewhere, I'm just not seeing it! I have never used the Character.GetNumericValue before (found it doing research) so I don't know if I am using it correctly.
Any ideas, nudges would be appreciated.
Thanks
Joyce(soon to be a happy welder at this rate)
public static int[] Converter (char[] array)
{
int i;
for (i=0;i<array.length-1;i++)
{
Character.getNumericValue(array);
System.out.println(array);
}
return array;
}