下面是我的代碼爲明星的構造,我傳遞了正確的價值觀,但我不斷收到一個找不到符號錯誤明星構造找不到方法的錯誤
private Star[] star;
st = db.readLineFromDB();
ST = new StringTokenizer(st , ",");
star[count] = Star.Star(Double.valueOf(ST.nextToken()),Double.valueOf(ST.nextToken()),ST.nextToken(),Integer.valueOf(ST.nextToken()),ST.nextToken());
count++;
public Star(double logdist, double vmag, String sp_class, int ID, String name)
{
this.logdist = logdist;
this.vmag = vmag;
this.sp_class = sp_class;
this.ID = ID;
this.name = name;
}
感謝俺們傢伙..關於放棄......