You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Main {
public static void main(String[] args) {
int x = System.in.read();
int[] foo = new int[x];
if y = System.in.read();
if (y <= 0) {
return;
}
int[] bar = new int[y];
}
}
x could be negative. Warn for that line.
y cannot be negative after the if stmt, so don't warn there.
The text was updated successfully, but these errors were encountered:
x
could be negative. Warn for that line.y
cannot be negative after the if stmt, so don't warn there.The text was updated successfully, but these errors were encountered: