Advertisement
Guest User

Untitled

a guest
May 27th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. public class HuxleyCode {
  2.     public static void main(String[] args) {
  3.  
  4.         Scanner keyboard = new Scanner(System.in);
  5.         String especialRU = keyboard.nextLine().substring(3);
  6.         String especialA2 = keyboard.nextLine().substring(7);
  7.         String comando = "";
  8.  
  9.         while (keyboard.hasNextLine()) {
  10.             comando = keyboard.nextLine();
  11.             if (!comando.contains(":")) {
  12.                 comando = comando + ":@#234!@#)(*";
  13.             }
  14.  
  15.             Aluno aluno = new Aluno(comando);
  16.             System.out.println(aluno.sort(especialRU, especialA2));
  17.            
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement