Search:

Type: Posts; User: GregBrannon

Search: Search took 0.07 seconds.

  1. Replies
    8
    Views
    1,220

    Re: How to call a constructor in main

    Like this:
    public static void main(String[] args)
    {
    // initialize id


    // initialize token


    PrepaidCard card2 = new PrepaidCard(id, token);
  2. Replies
    8
    Views
    1,220

    Re: How to call a constructor in main

    You're getting compiler errors, right? What are they and what have you tried to do to correct them?
  3. Replies
    8
    Views
    1,220

    Re: How to call a constructor in main

    Post the PrepaidCard class.
Results 1 to 3 of 3