Forums Register Login

compilation error...

+Pie Number of slices to send: Send
hi ,
please anyone could help me... i got an error message saying array dimension missing in the 12th line...

+Pie Number of slices to send: Send
Try using
;
instead of


and please use code tags.
+Pie Number of slices to send: Send
hi,
i dont get the output even after changing ,


instead of


i get an error saying ,cannot find the symbol.
+Pie Number of slices to send: Send
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).

+Pie Number of slices to send: Send
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


reply
reply
This thread has been viewed 934 times.
Similar Threads
Head first Java - Chapter 4 Pool Puzzle p.91
java installation procedure..
Result of the Code
compilation error.....
negative loop problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:10:12.