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";
return matriz;
}
public static void imprimeMatrizFeminina
(String [] [] mat
){ int cont = 0, j = 0;
for(int i=0; i<mat.length; i++)
if(mat[i][5].equals("Feminino") && mat[i][4].equals("Arryn")) cont ++;
for(int i = 0; i < mat.length; i++){
if(mat[i][5].equals("Feminino") && mat[i][4].equals("Arryn")){
matrizFemininaArryn[j] = mat[i][0];
j ++;
}
}
System.
out.
println("Mulheres da família Arryn em ordem alfabética crescente:" + Arrays.
toString(matrizFemininaArryn
)); }
{
imprimeMatrizFeminina(matrizPrincipal());
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyBTdHJpbmcgW11bXSBtYXRyaXpQcmluY2lwYWwoKXsKICAgICAgICBTdHJpbmcgW10gW10gbWF0cml6ID0gbmV3IFN0cmluZyBbMl0gWzZdOwogICAgICAgIG1hdHJpelswXVswXSA9ICJSb2JpbiBBcnJ5biI7CiAgICAgICAgbWF0cml6WzBdWzFdID0gIkxpbm8gRmFjaW9saSI7CiAgICAgICAgbWF0cml6WzBdWzJdID0gIjE0NSI7CiAgICAgICAgbWF0cml6WzBdWzNdID0gIlZpdm8iOwogICAgICAgIG1hdHJpelswXVs0XSA9ICJBcnJ5biI7CiAgICAgICAgbWF0cml6WzBdWzVdID0gIkZlbWluaW5vIjsKCiAgICAgICAgbWF0cml6WzFdWzBdID0gIllvaG4gUm95Y2UiOwogICAgICAgIG1hdHJpelsxXVsxXSA9ICJSdXBlcnQgVmFuc2l0dGFydCI7CiAgICAgICAgbWF0cml6WzFdWzJdID0gIjQ1IjsKICAgICAgICBtYXRyaXpbMV1bM10gPSAiVml2byI7CiAgICAgICAgbWF0cml6WzFdWzRdID0gIkFycnluIjsKICAgICAgICBtYXRyaXpbMV1bNV0gPSAiRmVtaW5pbm8iOwogICAgICAgIHJldHVybiBtYXRyaXo7CiAgICB9CiAgICAKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBpbXByaW1lTWF0cml6RmVtaW5pbmEoU3RyaW5nIFtdIFtdIG1hdCl7CiAgICAJaW50IGNvbnQgPSAwLCBqID0gMDsKICAgIAlmb3IoaW50IGk9MDsgaTxtYXQubGVuZ3RoOyBpKyspCiAgICAJICAgaWYobWF0W2ldWzVdLmVxdWFscygiRmVtaW5pbm8iKSAmJiBtYXRbaV1bNF0uZXF1YWxzKCJBcnJ5biIpKSBjb250ICsrOwogICAgCSAgIAogICAgICAgIFN0cmluZ1tdIG1hdHJpekZlbWluaW5hQXJyeW4gPSBuZXcgU3RyaW5nIFsgY29udCBdOwogICAgICAgIAogICAgICAgIGZvcihpbnQgaSA9IDA7IGkgPCBtYXQubGVuZ3RoOyBpKyspewogICAgICAgIAlpZihtYXRbaV1bNV0uZXF1YWxzKCJGZW1pbmlubyIpICYmIG1hdFtpXVs0XS5lcXVhbHMoIkFycnluIikpewogICAgICAgICAgICAgCW1hdHJpekZlbWluaW5hQXJyeW5bal0gPSBtYXRbaV1bMF07CiAgICAgICAgICAgICAJaiArKzsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oIk11bGhlcmVzIGRhIGZhbcOtbGlhIEFycnluIGVtIG9yZGVtIGFsZmFiw6l0aWNhIGNyZXNjZW50ZToiICsgQXJyYXlzLnRvU3RyaW5nKG1hdHJpekZlbWluaW5hQXJyeW4pKTsKICAgIH0KCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCWltcHJpbWVNYXRyaXpGZW1pbmluYShtYXRyaXpQcmluY2lwYWwoKSk7Cgl9Cn0=