/* 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
{
{
Teste a = new Teste();
a.setDepto("3");
Teste b = new Teste();
b.setDepto("2");
Teste c = new Teste();
c.setDepto("1");
ArrayList<Teste> testes = new ArrayList<>();
testes.add(a);
testes.add(b);
testes.add(c);
@Override
Teste a1 = (Teste)o1;
Teste a2 = (Teste)o2;
return a1.getDepto()
.compareToIgnoreCase(a2.getDepto());
}
});
for(Teste t: testes)
{
System.
out.
println(t.
getDepto()); }
}
}
class Teste
{
private String dataplanejadainicial
; private String dataEntradaEstado
;
return dctitle;
}
public void setDctitle
(String dctitle
) { this.dctitle = dctitle;
}
return rdfabout;
}
public void setRdfabout
(String rdfabout
) { this.rdfabout = rdfabout;
}
return dbid;
}
public void setDbid
(String dbid
) { this.dbid = dbid;
}
return depto;
}
public void setDepto
(String depto
) { this.depto = depto;
}
return sigla;
}
public void setSigla
(String sigla
) { this.sigla = sigla;
}
return ciclo;
}
public void setCiclo
(String ciclo
) { this.ciclo = ciclo;
}
return state;
}
public void setState
(String state
) { this.state = state;
}
public String getDataplanejadainicial
() { return dataplanejadainicial;
}
public void setDataplanejadainicial
(String dataplanejadainicial
) { this.dataplanejadainicial = dataplanejadainicial;
}
public String getDataEntradaEstado
() { return dataEntradaEstado;
}
public void setDataEntradaEstado
(String dataEntradaEstado
) { this.dataEntradaEstado = dataEntradaEstado;
}
return id;
}
public void setId
(String id
) { this.id = id;
}
public String getExecutante
() { return executante;
}
public void setExecutante
(String executante
) { this.executante = executante;
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVRlc3RlIGEgPSBuZXcgVGVzdGUoKTsKICAgICAgICBhLnNldERlcHRvKCIzIik7CiAgICAgICAgVGVzdGUgYiA9IG5ldyBUZXN0ZSgpOwogICAgICAgIGIuc2V0RGVwdG8oIjIiKTsKICAgICAgICBUZXN0ZSBjID0gbmV3IFRlc3RlKCk7CiAgICAgICAgYy5zZXREZXB0bygiMSIpOwoKICAgICAgICBBcnJheUxpc3Q8VGVzdGU+IHRlc3RlcyA9IG5ldyBBcnJheUxpc3Q8PigpOwogICAgICAgIHRlc3Rlcy5hZGQoYSk7CiAgICAgICAgdGVzdGVzLmFkZChiKTsKICAgICAgICB0ZXN0ZXMuYWRkKGMpOwogICAgICAgIAogICAgICAgIAogICAgICAgIENvbGxlY3Rpb25zLnNvcnQodGVzdGVzLCBuZXcgQ29tcGFyYXRvcigpewogICAgICAgICAgICBAT3ZlcnJpZGUKICAgICAgICAgICAgcHVibGljIGludCBjb21wYXJlKE9iamVjdCBvMSwgT2JqZWN0IG8yKSB7CiAgICAgICAgICAgICAgICBUZXN0ZSBhMSA9IChUZXN0ZSlvMTsKICAgICAgICAgICAgICAgIFRlc3RlIGEyID0gKFRlc3RlKW8yOwogICAgICAgICAgICAgICAgcmV0dXJuIGExLmdldERlcHRvKCkKICAgICAgICAgICAgICAgICAgICAgICAgLmNvbXBhcmVUb0lnbm9yZUNhc2UoYTIuZ2V0RGVwdG8oKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgCiAgICAgICAgfSk7CiAgICAgICAgCiAgICAgICAgZm9yKFRlc3RlIHQ6IHRlc3RlcykKICAgICAgICB7CiAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbih0LmdldERlcHRvKCkpOwogICAgICAgI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