<p>Does anybody know some java source code for a simple 2d array wordseach. anything would be greatly appreciated.. please!! PM me if you can so i can give you some psuedo code if you need it. again, please!!</p>
<p>2d array wordsearch? explain please</p>
<p>if you mean something like a newspaper word search,</p>
<p>char[][] array = new char[ROWS][COLUMNS];
(INITIALIZE ARRAY)
for (int i = 0; i < ROWS; i++) {
for (int j = 0; j <= COLUMNS - MINWORDLENGTH; j++) {
String word = "";
for (int k = 0; k < MINWORDLENGTH; k++) {
word = word + array*[j + k];
}
if (isWord(word)) REJOICE!!!!!!
for (int k = MINWORDLENGTH + j; k < COLUMNS; k++) {
word = word + array*[k];
if (isWord(word)) REJOICE!!!!!
}
}
}</p>
<p>Then just traverse the array in the opposite direction</p>