aspose file tools*
The moose likes Beginning Java and the fly likes compilation error... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "compilation error..." Watch "compilation error..." New topic
Author

compilation error...

archana keerti
Greenhorn

Joined: Feb 03, 2009
Posts: 20
hi ,
please anyone could help me... i got an error message saying array dimension missing in the 12th line...

Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Posts: 317
Try using
;
instead of


and please use code tags.
archana keerti
Greenhorn

Joined: Feb 03, 2009
Posts: 20
hi,
i dont get the output even after changing ,


instead of


i get an error saying ,cannot find the symbol.
Sridhar Santhanakrishnan
Ranch Hand

Joined: Mar 20, 2007
Posts: 317
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

Joined: Feb 03, 2009
Posts: 20
thank you for clearing my doubt.....i got the output.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: compilation error...