Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum Directions
- {
- NORTH, SOUTH, WEST, EAST;
- private Directions()
- {
- System.out.println(1);
- }
- }
- public class A
- {
- public static void main(String[] args)
- {
- Directions d1 = new Directions();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement