diff --git a/src/main/java/com/github/hcsp/datatype/IntegerOverflow.java b/src/main/java/com/github/hcsp/datatype/IntegerOverflow.java index e476132..37f876f 100644 --- a/src/main/java/com/github/hcsp/datatype/IntegerOverflow.java +++ b/src/main/java/com/github/hcsp/datatype/IntegerOverflow.java @@ -5,7 +5,7 @@ public class IntegerOverflow { // Fix this method to make it output "i=3000000000" public static void main(String[] args) { int 十亿 = 10_0000_0000; - int i = 0; + long i=0; i = i + 十亿; System.out.println("i=" + i);