Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Tasks {
- public static Tasks instance = new Tasks();
- private static final int DELTA = 5;
- private static int BASE = 7;
- private int x;
- public Tasks() {
- x = BASE + DELTA;
- }
- public static int getBASE() {
- return BASE;
- }
- public static void main(String[] args) {
- System.out.println(Tasks.instance.x);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment