Skip to content

Instantly share code, notes, and snippets.

@jmherbst
Created September 23, 2014 20:33
Show Gist options
  • Save jmherbst/13b5fc025333d17013db to your computer and use it in GitHub Desktop.
Save jmherbst/13b5fc025333d17013db to your computer and use it in GitHub Desktop.
MAIN:
setDirection("out");
CLASS SNIPPET:
public String getDirection ()
{
return this.direction;
}
void setDirection (String direction)
{
this.direction = direction;
System.out.println("-----");
System.out.println("We have set direction to " + this.direction);
System.out.println("Testing this.getDirection() " + this.getDirection());
System.out.println("-----");
}
LOG:
-----
We have set direction to out
Testing this.getDirection() null
-----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment