Created
June 10, 2015 23:49
-
-
Save JackBracken/769fcd194baf9ab237aa 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
[~]$ cat Test.java | |
public class Test { | |
private int i; | |
public int getI() { | |
return i; | |
} | |
public static void main(String[] args) { | |
Test t = new Test(); | |
System.out.print(t.getI()); | |
} | |
} | |
[~]$ javac Test.java | |
[~]$ java Test | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment