java - Cannot Find method error -
below code star constructor, i'm passing correct values keep getting cannot find symbol error star constructor
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; }
thanks guys ans... give up...
star[count] = new star(...);
you invoke constructors new
keyword, not class.class(...)
.
Comments
Post a Comment