Anyone has success with inner classes in Java submission?

Write here if you have problems with your Java source code

Moderator: Board moderators

Post Reply
ggll
New poster
Posts: 13
Joined: Tue Jun 10, 2003 5:15 am

Anyone has success with inner classes in Java submission?

Post by ggll » Wed Jul 16, 2003 10:25 am

It sounds like inner classes can be used in Java submission, but I always got compile error whenever I used them(and the code compiled perfectly on my local machine).

Has anyone successfully submitted Java code with inner classes? If so, could you please give a outline on how you did that? Thanks.

anupam
A great helper
Posts: 405
Joined: Wed Aug 28, 2002 6:45 pm
Contact:

Post by anupam » Wed Jul 16, 2003 2:53 pm

yes. i also agree with you.
please some1 note the classes that can be used without cerror. in that case we can easily find our problems
"Everything should be made simple, but not always simpler"

Larry
Guru
Posts: 647
Joined: Wed Jun 26, 2002 10:12 pm
Location: Hong Kong and New York City
Contact:

Post by Larry » Thu Aug 07, 2003 6:41 pm

From my experience (maybe they changed it - I haven't used Java in a year for this site), you cannot do inner classes, however, on one submission file, you can have multiple classes - put them one after each other on the same file..

ggll
New poster
Posts: 13
Joined: Tue Jun 10, 2003 5:15 am

Post by ggll » Tue Aug 12, 2003 11:22 am

Your method works! Thanks!

Post Reply

Return to “Java”