Skip to content

Instantly share code, notes, and snippets.

@qnoid
Last active December 19, 2015 18:48
Show Gist options
  • Save qnoid/6001276 to your computer and use it in GitHub Desktop.
Save qnoid/6001276 to your computer and use it in GitHub Desktop.
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