a extremly simply calculator function of java.