15 lines
239 B
Java
15 lines
239 B
Java
|
/*** variable declaration as solitary statement in an arm of a conditional
|
||
|
* COMP 520
|
||
|
* Identification
|
||
|
*/
|
||
|
class fail13 {
|
||
|
public static void main(String[] args) {
|
||
|
int x = 0;
|
||
|
if (3 > 4)
|
||
|
x = 1;
|
||
|
else
|
||
|
int y = 2;
|
||
|
}
|
||
|
}
|
||
|
|