Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2011
    Posts
    15
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation Chord Main Definition?

    I have a chord java sample program which doesn hve a main. It has multiple class files but none have a main. How 2 create a main function 4 tis program? What 2 pass in as arguments, how to initialize since some of the arguments r of type Chord.

  • #2
    New Coder
    Join Date
    Jan 2011
    Location
    India
    Posts
    31
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Put the main method in the public class. Only one of the classes in a file can be public. Put the normal main syntax.

    Please give more clarity in your question for helping you out further


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •