Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void searchCombination(LinkedList<Console> l, String... combination ) {
- for (int i = 0; i < l.size(); i++) {
- if (combination.length == 1) {
- if ( combination[0].equals(l.get(i).getSex()) ||
- combination[0].equals(l.get(i).getCity()) ||
- combination[0].equals(l.get(i).getColor()) ||
- combination[0].equals(l.get(i).getType()) ||
- combination[0].equals(l.get(i).getHours())
- )
- {
- System.out.println(l.get(i).informationaToTerminal());
- }
- }
- if (combination.length == 2) {
- }
- if (combination.length == 3) {
- }
- if (combination.length == 4) {
- }
- if (combination.length == 5) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement