JAVA判断语句与循环语句
摘要:一、判断语句:if和switch if(关系表达式1) { 语句体1; }else if (关系表达式2) { 语句体2; }… else { 语句体n+1; } switch(表达式) { case 值1: 语句体1; break; case 值2: 语句体2; break; … default:
阅读全文
posted @ 2022-05-24 14:43
posted @ 2022-05-24 14:43
posted @ 2022-04-19 15:34
posted @ 2022-04-10 22:36