I want to write a boolean function call isDistrict (String districtCheck) {} and i need to use this method for checking district is the same as disrictCheck, if yes it will return turn and the other will return flase.but i hv no ideal to do this.
public boolean isDistrict (String districtCheck) {
// TODO: Missing logic. Help
}
For example if I would have this String, where I would like to check for Kwun Tong: address:Room A,32/F,456 XXX,Kwun Tong,Kowloon districtCheck:Kwun Tong true When I would check for Hung Hom, I would get: districtCheck:Hung Hom false