View Single Post
Old May 22nd, 2006, 4:05 AM   #3
tumbleTetris
Programmer
 
Join Date: May 2006
Posts: 39
Rep Power: 0 tumbleTetris is on a distinguished road
umm, I sort of deleted it, the code was very messy...

It was something like this:

char[] correct = new char[26]
char[] incorrect = new char[26]

char <letter>
wordlength = word.length;
int x = 0;
while ( 0 < wordlength )
{

if ( charAt(x) == letter )
{
correct[x] = charAt(x);

x = 0;
while ( x < 26;)
{
System.out.print(correct[x]);
}
break;
}
}

I think it was something like that, it was very muddled so I decided to start over from scratch...
tumbleTetris is offline   Reply With Quote