“Integer too large” for a small compile time constant

后端 未结 4 1467
深忆病人
深忆病人 2020-12-22 03:04

I have this:

switch (account){
    case 08120:
        // Savings deposit interest rate
        return null;                
    case 13100:
        // Recei         


        
4条回答
  •  无人及你
    2020-12-22 03:29

    It's not a java bug.

    You cannot use the format of 0XXXXX for decimal numbers. Decimal numbers should be started with a non-zero digit.

    Use 8120 instead of 08120

提交回复
热议问题