How to declaration class in java