Simple Java calculator