What code is at line 10?
The array was defined with 0 elements! There is no 0th element.
Type: Posts; User: Norm
What code is at line 10?
The array was defined with 0 elements! There is no 0th element.
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;
}
...
Your namings make for a problem. Class names should start with a Capital letter.
Please copy and paste here the full text of the error message. It has valuable information in it that Your edited version left out.
Looks like a scope problem. Make sure the variables you use are defined at the scope where you are using them.