In my program I\'m trying to compare my char array asterixA[] to string (word) in an if loop like:
asterixA[]
if (word.equals(asterixA))
you have to convert the character array into String or String to char array and then do the comparision.
if (word.equals(new String(asterixA)))
or
if(Arrays.equals(word.toCharArray(), asterixA))
BTW. if is a conditional statement not a loop