now i'm writing a method which is checking the ip already exist or not
private boolean EXISTIP(String s) {
boolean result = true;
try{
for (int i = 0; i < Client_list.length; i++) {
if (Client_list[i][0].equals(s)) {
return true;
} else {
result = false;
}
}
}catch(Exception e){
return false;
}
return result;
}
can you check it?
it does not return anything to me