Last active
December 19, 2015 18:48
-
-
Save qnoid/6001276 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class Main | |
{ | |
static class Number | |
{ | |
final int value; | |
public Number(int value) { | |
this.value = value; | |
} | |
} | |
public static void main(String[] args) | |
{ | |
Number one = new Main.Number(1); | |
Number two = new Main.Number(2); | |
System.out.println(one.value); | |
System.out.println(two.value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment