可以前边申明一个String 比如 result变量,然后下边每个if里边,跟else里边对String 变量赋值,while("Exact match:no match".equals(result));就代表没匹配结果,继续执行