/* package whatever; // don't place package name! */
import java.util.* ;
import java.lang.* ;
import java.io.* ;
/* Name of the class has to be "Main" only if the class is public. */
class BloquesSentencia
{
{
if ( true ) {
System .
out .
println ( "Bloque de sentencia IF" ) ; }
for ( int i= 0 ; i< 10 ; i++ ) {
System .
out .
println ( "Bloque de sentencia FOR" ) ; }
boolean flag = true ;
while ( flag) {
System .
out .
println ( "Bloque de sentencia WHILE" ) ; flag = false ;
}
do {
System .
out .
println ( "Bloque de sentencia DO" ) ; } while ( false ) ;
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgQmxvcXVlc1NlbnRlbmNpYQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlpZih0cnVlKXsKCQkJU3lzdGVtLm91dC5wcmludGxuKCJCbG9xdWUgZGUgc2VudGVuY2lhIElGIik7CgkJfQoKCQlmb3IoaW50IGk9MDtpPDEwO2krKyl7CgkJCVN5c3RlbS5vdXQucHJpbnRsbigiQmxvcXVlIGRlIHNlbnRlbmNpYSBGT1IiKTsKCQl9CgoJCWJvb2xlYW4gZmxhZyA9IHRydWU7CgkJd2hpbGUoZmxhZyl7CgkJCVN5c3RlbS5vdXQucHJpbnRsbigiQmxvcXVlIGRlIHNlbnRlbmNpYSBXSElMRSIpOwoJCQlmbGFnID0gZmFsc2U7CgkJfQoKCQlkb3sKCQkJU3lzdGVtLm91dC5wcmludGxuKCJCbG9xdWUgZGUgc2VudGVuY2lhIERPIik7CgkJfXdoaWxlKGZhbHNlKTsKCX0KfQ==