Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1. static void searchCombination(LinkedList<Console> l, String... combination ) {
  2.                     for (int i = 0; i < l.size(); i++) {                       
  3.                         if (combination.length == 1) {
  4.                             if (        combination[0].equals(l.get(i).getSex()) ||
  5.                                     combination[0].equals(l.get(i).getCity()) ||
  6.                                     combination[0].equals(l.get(i).getColor()) ||
  7.                                     combination[0].equals(l.get(i).getType())  ||
  8.                                     combination[0].equals(l.get(i).getHours())  
  9.                                    
  10.                                     )
  11.                             {
  12.                                 System.out.println(l.get(i).informationaToTerminal());
  13.                             }
  14.                         }
  15.                         if (combination.length == 2) {
  16.                            
  17.                         }
  18.                         if (combination.length == 3) {
  19.                            
  20.                         }
  21.                         if (combination.length == 4) {
  22.                        
  23.                         }
  24.                         if (combination.length == 5) {
  25.                            
  26.                         }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement