/* 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 Ideone
{
{
ExemploInicializador2 objeto = new ExemploInicializador2();
}
}
class ExemploInicializador2 {
private String nome
= "Aurélio"; private String sobrenome
= "Soares"; private int idade = 25;
private double f = 354.34;
// Bloco Inicializador
{
System.
out.
println ("Nome: " +nome
); System.
out.
println ("Sobrenome: " +sobrenome
); System.
out.
println ("Idade: "+idade
); }
// Construtor
public ExemploInicializador2 () {
System.
out.
println ("Dentro do Construtor"); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCUV4ZW1wbG9JbmljaWFsaXphZG9yMiBvYmpldG8gPSBuZXcgRXhlbXBsb0luaWNpYWxpemFkb3IyKCk7Cgl9Cn0KCgpjbGFzcyBFeGVtcGxvSW5pY2lhbGl6YWRvcjIgewoKICAgcHJpdmF0ZSBTdHJpbmcgbm9tZSA9ICJBdXLDqWxpbyI7CiAgIHByaXZhdGUgU3RyaW5nIHNvYnJlbm9tZSA9ICJTb2FyZXMiOwogICBwcml2YXRlICBpbnQgaWRhZGUgPSAyNTsKICAgcHJpdmF0ZSAgZG91YmxlIGYgPSAzNTQuMzQ7CgogICAvLyBCbG9jbyBJbmljaWFsaXphZG9yCiAgIHsKICAgIFN5c3RlbS5vdXQucHJpbnRsbiAoIk5vbWU6ICIgK25vbWU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