易截截图软件、单文件、免安装、纯绿色、仅160KB

java 求救

见代码:
Java code:

import java.util.ArrayList;
import actor.Sheep;

public class BoundedGrid<E>
{
private Object[][] occupantArray; // the array storing the grid elements

public E get(Location loc)
{
if (!isValid(loc))
throw new IllegalArgumentException("Location " + loc
+ " is not valid");
return (E) occupantArray[loc.getX()][loc.getY()];
}



public ArrayList<Location> getEmptyLocations(Location l)
{
ArrayList<Location> theLocations = new ArrayList<Location>();

for (int r = -1; r < 2; r++)
{
for (int c = -1; c < 2; c++)
{
Location loc = new Location(l.getX() + r, l.getY() + c);
if (loc.getX() >=0 && loc.getY() >=0 && get(loc) == null)//get(loc) == null就可以
theLocations.add(loc);
}
}
return theLocations;
}

public ArrayList<Location> getSheepLocations(Location l)
{
ArrayList<Location> theLocations = new ArrayList<Location>();

// Look at all grid locations.
for (int r = -1; r < 2; r++)
{
for (int c = -1; c < 2; c++)
{
Location loc =


相关问答:

jsp 中乱码的 - Java / Web 开发

我的开发的平台是Myeclipes6.0 + tomcat5.x + mysql
我所有的编码方式都是用的UTF-8 
我只用了Strtus框架
在一个form中如下用的是post的提交方式:
 <form class="form" action=&quo ......

java日期处理 - Java / Java SE

当知道一个日期,如何把这个日期所在旬的前后两个日期取出
比如输入20090905,就输入20090901 20090910
输出20090901 20090910

取得天数后作一下判断再把这个方法用下void set(int field, int value)  
......

java的小问题 extends

public   class   Student{

//字段的定义
private   String   _number;   //学号
private   String   _name;       //姓名
private   ......

java 新手求借

eclipse 创建 webservice
jquery 如何调用 java 创建的 webservice

没遇见过,期待高手解答!
up


看看,(⊙o⊙)

主要告诉我 jquery 如何调用 java 创建的 webservice


很"抽象"的问题
LZ ......

希望好心人帮帮我,有关手机qq2009的java版

我希望在编辑文字后把发送键改到屏幕中间,具体说就是
在kb.class中的部分作出修改


部分代码:
V = new TextBox(ld.a(383), "", 190, 0);
        X = new Comma ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号