Skip to content

Commit

Permalink
OK (#132)
Browse files Browse the repository at this point in the history
OK (#132)

Co-authored-by: Eloi0424 <[email protected]>
  • Loading branch information
ByteLegendBot and Eloi0424 committed Nov 26, 2023
2 parents 62c23b5 + e8f7f24 commit 3f9cda6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/bytelegend/IntegerOverflow.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

public class IntegerOverflow {
public static void main(String[] args) {
int oneBillion = 1_000_000_000;
int i = 0;
long oneBillion = 1_000_000_000;
long i = 0;

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

0 comments on commit 3f9cda6

Please sign in to comment.