import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
public static String [][] matrizPrincipal
(){ matriz[0][0] = "Robin Arryn";
matriz[0][1] = "Lino Facioli";
matriz[0][2] = "145";
matriz[0][3] = "Vivo";
matriz[0][4] = "Arryn";
matriz[0][5] = "Feminino";
matriz[1][0] = "Yohn Royce";
matriz[1][1] = "Rupert Vansittart";
matriz[1][2] = "45";
matriz[1][3] = "Vivo";
matriz[1][4] = "Arryn";
matriz[1][5] = "Feminino";
matriz[2][0] = "Maria bAR";
matriz[2][1] = "Rupert bAZ";
matriz[2][2] = "96";
matriz[2][3] = "mORTO";
matriz[2][4] = "Argos";
matriz[2][5] = "Feminino";
return matriz;
}
public static void imprimeMatrizFeminina
(String [] [] mat
){ List<String> matrizFemininaArryn = new ArrayList<String>();
for(int i = 0; i < mat.length; i++){
if(mat[i][5].equals("Feminino") && mat[i][4].equals("Arryn")){
matrizFemininaArryn.add(mat[i][0]);
}
}
System.
out.
println("Mulheres da famĂlia Arryn em ordem alfabĂ©tica crescente: " + matrizFemininaArryn
); }
{
imprimeMatrizFeminina(matrizPrincipal());
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyBTdHJpbmcgW11bXSBtYXRyaXpQcmluY2lwYWwoKXsKICAgICAgICBTdHJpbmcgW10gW10gbWF0cml6ID0gbmV3IFN0cmluZyBbM10gWzZdOwogICAgICAgIG1hdHJpelswXVswXSA9ICJSb2JpbiBBcnJ5biI7CiAgICAgICAgbWF0cml6WzBdWzFdID0gIkxpbm8gRmFjaW9saSI7CiAgICAgICAgbWF0cml6WzBdWzJdID0gIjE0NSI7CiAgICAgICAgbWF0cml6WzBdWzNdID0gIlZpdm8iOwogICAgICAgIG1hdHJpelswXVs0XSA9ICJBcnJ5biI7CiAgICAgICAgbWF0cml6WzBdWzVdID0gIkZlbWluaW5vIjsKCiAgICAgICAgbWF0cml6WzFdWzBdID0gIllvaG4gUm95Y2UiOwogICAgICAgIG1hdHJpelsxXVsxXSA9ICJSdXBlcnQgVmFuc2l0dGFydCI7CiAgICAgICAgbWF0cml6WzFdWzJdID0gIjQ1IjsKICAgICAgICBtYXRyaXpbMV1bM10gPSAiVml2byI7CiAgICAgICAgbWF0cml6WzFdWzRdID0gIkFycnluIjsKICAgICAgICBtYXRyaXpbMV1bNV0gPSAiRmVtaW5pbm8iOwogICAgICAgIAogICAgICAgIG1hdHJpelsyXVswXSA9ICJNYXJpYSBiQVIiOwogICAgICAgIG1hdHJpelsyXVsxXSA9ICJSdXBlcnQgYkFaIjsKICAgICAgICBtYXRyaXpbMl1bMl0gPSAiOTYiOwogICAgICAgIG1hdHJpelsyXVszXSA9ICJtT1JUTyI7CiAgICAgICAgbWF0cml6WzJdWzRdID0gIkFyZ29zIjsKICAgICAgICBtYXRyaXpbMl1bNV0gPSAiRmVtaW5pbm8iOwogICAgICAgIHJldHVybiBtYXRyaXo7CiAgICB9CiAgICBwdWJsaWMgc3RhdGljIHZvaWQgaW1wcmltZU1hdHJpekZlbWluaW5hKFN0cmluZyBbXSBbXSBtYXQpewogICAgICAgIExpc3Q8U3RyaW5nPiBtYXRyaXpGZW1pbmluYUFycnluID0gbmV3IEFycmF5TGlzdDxTdHJpbmc+KCk7CiAgICAgICAgCiAgICAgICAgZm9yKGludCBpID0gMDsgaSA8IG1hdC5sZW5ndGg7IGkrKyl7CiAgICAgICAgICAgIGlmKG1hdFtpXVs1XS5lcXVhbHMoIkZlbWluaW5vIikgJiYgbWF0W2ldWzRdLmVxdWFscygiQXJyeW4iKSl7CiAgICAgICAgICAgICAgICBtYXRyaXpGZW1pbmluYUFycnluLmFkZChtYXRbaV1bMF0pOwogICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oIk11bGhlcmVzIGRhIGZhbcOtbGlhIEFycnluIGVtIG9yZGVtIGFsZmFiw6l0aWNhIGNyZXNjZW50ZTogIiArIG1hdHJpekZlbWluaW5hQXJyeW4pOwogICAgfQoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJaW1wcmltZU1hdHJpekZlbWluaW5hKG1hdHJpelByaW5jaXBhbCgpKTsKCX0KfQ==