CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2011
    Posts
    18

    Exclamation Chord Java Program Main Undefined

    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. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: Chord Java Program Main Undefined

    Put a 'main' method into one of the classes, or write a separate class that has a 'main' method. In the main method, create and use the objects you need. See The 'main' Method.

    Please use plain English when posting so everyone can follow.

    Why do we never have time to do it right, but always have time to do it over?
    Anon.
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

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
  •  





Click Here to Expand Forum to Full Width

Featured