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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -