char initial value in Java

前端 未结 6 1047
轮回少年
轮回少年 2020-12-08 19:21

You initialize an int variable defined within a method to have a value of 0 until you compute specific values for the int. What can on

6条回答
  •  遥遥无期
    2020-12-08 20:21

    you can initialize it to ' ' instead. Also, the reason that you received an error -1 being too many characters is because it is treating '-' and 1 as separate.

提交回复
热议问题