archana keerti
,
Greenhorn
hi ,
please anyone could help me... i got an error message saying array dimension missing in the 12th line...
Sridhar Santhanakrishnan
,
Ranch Hand
Try using
;
instead of
and please use code tags.
archana keerti
,
Greenhorn
hi,
i dont get the output even after changing ,
instead of
i get an error saying ,cannot find the symbol.
Sridhar Santhanakrishnan
,
Ranch Hand
You get that error usually when you havent declared the variable.
Look at the line of code.
dog[x]=new dog();
You have declared the array as d[] not dog[] change it to d[x] and it should work.
Take some time off to read the error description. Java error messages tend to be pretty exhaustive and clear (mostly).
archana keerti
,
Greenhorn
thank you for clearing my doubt.....i got the output.
What? What, what, what? What what tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com