Skip to content

Instantly share code, notes, and snippets.

Created November 4, 2014 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/725dfae10e75f5e34826 to your computer and use it in GitHub Desktop.
Save anonymous/725dfae10e75f5e34826 to your computer and use it in GitHub Desktop.
public class IdentifierHeaderNode
{
private String identifier;
private LineNumNode next;
// constructor
public IdentifierHeaderNode(String identifier, LineNumNode next)
{
this.identifier = identifier;
this.next = next;
}
// getters
public String getIdentifier()
{
return identifier;
}
public LineNumNode getNext()
{
return next;
}
// setters
public void setNext(LineNumNode next)
{
this.next = next;
}
}
public class LineNumNode
{
private int lineNum;
private LineNumNode next;
// constructor
public LineNumNode(int lineNum, LineNumNode next)
{
this.lineNum = lineNum;
this.next = next;
}
// getters
public int getLineNum()
{
return lineNum;
}
public LineNumNode getNext()
{
return next;
}
public void setNext(LineNumNode next)
{
this.next = next;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment