So below I have and method that returns true if the second condition is met. However, I want to return false if the first condition is met. However, the problem I get is it returns false all the times.
public static boolean matching(Request a, Request b) {
if (a.info[2].equals("*") & b.info[2].equals("*")) {
return false;
}
return ((a.info[1].equals(b.info[1]) && a.info[2].equals(b.info[2])) || (a.info[1]
.equals(b.info[1]) && a.info[2].equals("*") || b.info[2]
.equals("*")));
}