If you change the second ifto else, then the compiler will be happy.
int a = 1, b;
if(a > 0) b = 1;
else b = 2;
System.out.println(b);
, Java , :
:
void flow(boolean flag) {
int k;
if (flag)
k = 3;
if (!flag)
k = 4;
System.out.println(k);
}
.
( ) , , , .