Very simple cross-platform Java calculator