Created
September 23, 2014 20:33
-
-
Save jmherbst/13b5fc025333d17013db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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