Skip to content

Commit

Permalink
Update IntegerOverflow.java (#131)
Browse files Browse the repository at this point in the history
Update IntegerOverflow.java (#131)

Co-authored-by: VacancyIF <[email protected]>
  • Loading branch information
ByteLegendBot and VacancyIF committed Nov 23, 2023
2 parents 9b4dbd9 + 3d88cda commit 912659b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/bytelegend/IntegerOverflow.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class IntegerOverflow {
public static void main(String[] args) {
int oneBillion = 1_000_000_000;
int i = 0;
long i = 0;

i = i + oneBillion;
System.out.println("i=" + i);
Expand Down

0 comments on commit 912659b

Please sign in to comment.