yes i think so.
a few points however:
Code:
for (int x2 =0;x2 >0; x2++){
for(int y2=0; y2>0;y2++)
Did you mean less than 10 there?
Those 2 loops do nothing. Java loops are prechecked, meaning that the stop condition is checked before the first loop. x2 starts at zero, and the check is greater than zero.
Also just my opin, name that func something like hasRomulan()
java for games huh? i must be getting old.