java - I'm getting array dimension missing error -


defaulttablemodel dt = (defaulttablemodel)jtable1.getmodel();  for(int = 0 ; i<date.size();i++){    dt.addrow(new object[](firstname(i),secondname(i),gender(i))); } 

i'm getting array dimension missing error. why?

you should use { } because row composed of array of objects.

dt.addrow(new object[]{g(i),ti(i),to(i)}); 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -