You have the name of a local variable after new; new should be followed by the class name, so the compiler thinks you have the package name and gets stuck at that point.
Jamie Laurent wrote:code tags would be done how? i will keep it in mind for future issues.
I have edited your post and you can see how much better it looks. Push the code button; the dropdown list to its left will usually read “Java”, and put your cursor in the gap between ] and [
so the book is wrong? i typed it right from the book and that is how it is typed.. what is the proper fix for it? remove new?
You sure you have copied it correctly? Which page is it on?
Man, now i feel dumb. I must have moved the new from the line below to one above.. thanks for the help. i will put my stuff in the code tags when needed now. thank you again.
Think nothing of it. I have spent this afternoon going through the “Java in General” forum and come back two hours later to find I have misunderstood every question I answered. Everybody does that sort of thing.
Post by:autobot
This guy is skipping without a rope. At least, that's what this tiny ad said:
a bit of art, as a gift, that will fit in a stocking