java 学习笔记 1. if语句中,以return作为执行语句时,后续的if语句不需要加上else
static int test2(int testval) { if(testval > target) return -1; if(testval < target) return +1; return 0; // match }