Simple Java calculator

后端 未结 10 1890
迷失自我
迷失自我 2020-12-22 02:16

Firstly this is not a homework question. I am practicing my knowledge on java. I figured a good way to do this is to write a simple program without help. Unfortunately, my c

10条回答
  •  -上瘾入骨i
    2020-12-22 03:14

    operands and operators are out of scope for main. You declare local variables in the constructor, so when you exit the ctor they're eligible for GC and gone.

    You have compilation errors - 10 of them.

提交回复
热议问题