gogoWebsite

Regarding the issue of declaring values ​​in brackets if omitted (variable declaration not allowed here)

Updated to 17 days ago

Like the following code, else will report an error, "variable declaration not allowed here", because Java believes that the sentence int sum = (b_len-) - '0' is two sentences, int sum and sum = (b_len-) - '0'

while (a_len >= 0 || b_len >= 0) {
	if (a_len >= 0) {
		int sum = a.charAt(a_len--) - '0';
	}
	else
		int sum = b.charAt(b_len--) - '0';
}