// test for rock
List rocks = getWorld().getObjectsAt(x , y, Rock.class);
/* Look up the List class (java.util.List) in the Java API
* and determine what method to use with the 'rocks' List
* to determine if there was a rock. Put the correct test
* in the 'if()' statement below.
*/
if () {
return true;
}
return false;
上記の「if()」ステートメントに記入する必要があります return true; lst を使用して if ステートメントを取得する方法を本当に混乱させました。助けてください!やり方の知識を発信!どうもありがとうございました!