Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

名称 '十亿' 必须匹配表达式: '^[a-z][a-zA-Z0-9]*$' 。

int i = 0;
long i=0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'=' 后应有空格。
'=' 前应有空格。


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