Search:

Type: Posts; User: Norm

Search: Search took 0.16 seconds.

  1. Replies
    15
    Views
    2,139

    Re: passing object and storing

    What code is at line 10?
    The array was defined with 0 elements! There is no 0th element.
  2. Replies
    15
    Views
    2,139

    Re: passing object and storing

    class Node {
    Packet aPacket; // Store Packet object here
    ...
    public Packet getPacket() { // This method can be called from Main class to get Packet object
    return aPacket;
    }
    ...
  3. Replies
    15
    Views
    2,139

    Re: passing object and storing

    Your namings make for a problem. Class names should start with a Capital letter.
  4. Replies
    15
    Views
    2,139

    Re: passing object and storing

    Please copy and paste here the full text of the error message. It has valuable information in it that Your edited version left out.
  5. Replies
    15
    Views
    2,139

    Re: passing object and storing

    Looks like a scope problem. Make sure the variables you use are defined at the scope where you are using them.
Results 1 to 5 of 5