daily pastebin goal
12%
SHARE
TWEET

novocodigo

a guest Sep 14th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // TODO Auto-generated method stub
  2.         Scanner in = new Scanner(System.in);
  3.         int candidatos;
  4.         String nome, caracteristica;
  5.         String[] nomeCaracters = new String[100];
  6.         candidatos = in.nextInt();
  7.         String[] bichos = new String[5];
  8.        
  9.         //ambicao astucia expertise -cobra
  10.         //analise suporte tecnica- lesma
  11.         //agilidade inteligencia destreza - macaco
  12.         //experiencia persppicacia pericia - caes
  13.        
  14.         nome = "qwe";
  15.         for (int i = 0; i < nomeCaracters.length; i++) {
  16.             nomeCaracters[i] = in.next();
  17.             nomeCaracters[i+1] = in.next();
  18.             if (caracteristica.equals(nomeCaracters[0]) || caracteristica.equals(nomeCaracters[1]) || caracteristica.equals(nomeCaracters[2])) {
  19.                 bichos[0] = "Sapos :";
  20.             }
  21.             if (caracteristica.equals(nomeCaracters[3]) || caracteristica.equals(nomeCaracters[4]) || caracteristica.equals(nomeCaracters[5])) {
  22.                 bichos[1] = "Cobras :";
  23.             }
  24.             if (caracteristica.equals(nomeCaracters[6]) || caracteristica.equals(nomeCaracters[7]) || caracteristica.equals(nomeCaracters[8])) {
  25.                 bichos[2] = "Lesmas :";
  26.             }
  27.             if (caracteristica.equals(nomeCaracters[9]) || caracteristica.equals(nomeCaracters[10]) || caracteristica.equals(nomeCaracters[11])) {
  28.                 bichos[3] = "Macacos :";
  29.             }
  30.             if (caracteristica.equals(nomeCaracters[12]) || caracteristica.equals(nomeCaracters[13]) || caracteristica.equals(nomeCaracters[14])) {
  31.                 bichos[4] = "Caes :";
  32.             }
  33.         }
  34.        
  35.         System.out.printf("%s\n- %s\n%s\n- %s\n%s\n- %s\n%s\n- %s\n%s\n- %s\n", bichos[0], nome, bichos[1], nome, bichos[2], nome, bichos[3], nome, bichos[4],nome);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top