If you want to access functions/variables of a class from a different class they can't be private. The modifier private means that a function/variable can only be accessed from within the same class. Try the default, protected or public modifier.
When a member (Variables, methods, and constructors) is private, it is only accessible within the same class as it is declared. Attempting to access or instantiate it from another class would throw java.lang.IllegalAccessException exception.
java.lang.IllegalAccessException: Class Test1 can not access a member of class Event with modifiers "pr ivate"at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)at java.lang.reflect.Field.doSecurityCheck(Field.java:811)at java.lang.reflect.Field.getFieldAccessor(Field.java:758)at java.lang.reflect.Field.get(Field.java:228)at undefined.Test1.main(Test1.java:40)