Search:

Type: Posts; User: GregBrannon

Search: Search took 0.22 seconds.

  1. Replies
    7
    Views
    1,261

    Re: Java programme design help

    This is basic Java. The top-level public class named the same as the file name and including a main() method will be the entry point for the program. The main() method buried in a nested class of a...
  2. Replies
    7
    Views
    1,261

    Re: Java programme design help

    You posted the same code. You didn't even try to do what I suggested.

    Oh well. There's more than one way to skin this cat. One is to include both classes in the same file, but file naming is...
  3. Replies
    7
    Views
    1,261

    Re: Java programme design help

    What's the purpose of the inner class CubeUser? Why do you need/want it?

    Edit: Oh, oh, oh. I see. You're trying to follow the directions. You don't create an inner class CubeUser. Instead,...
  4. Replies
    7
    Views
    1,261

    Re: Java programme design help

    Welcome to the forum! Thanks for figuring out how to post your code in code tags.

    Java classes should have names beginning with capital letters.

    As for the correctness of your Cube class, if...
Results 1 to 4 of 4