Create user.java

this is user.java file and it has the function of getter and setter.