// 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 语句。请帮忙!并发送知识如何做!十分感谢大家!