數(shù)組 查找下標(biāo): class Demo1 { public static void main(String[] args) { int [] arr = {1, 3, 23,...
數(shù)組 查找下標(biāo): class Demo1 { public static void main(String[] args) { int [] arr = {1, 3, 23,...
break 關(guān)鍵詞 如果程序運(yùn)行到break,就會(huì)跳出當(dāng)前的分支【switch】或者循環(huán)【while,do-while,for】,直接執(zhí)行到 結(jié)構(gòu)之后的代碼 continue...
循環(huán)結(jié)構(gòu) 循環(huán)結(jié)構(gòu)的三種方式: while循環(huán) while (循環(huán)條件 true/false) { 循環(huán)體; (循環(huán)條件變更) } 執(zhí)行流程: ...
分支結(jié)構(gòu) int choose = 0; Scanner sc = new Scanner(sysotem in); choose = sc.nextInt(); switc...
1,變量和運(yùn)算符 整型 byte 1字節(jié) short 2字節(jié) int 4字節(jié) long 8字節(jié) 浮點(diǎn)型 float 4字節(jié) double 8字節(jié) 字符型 char 2字節(jié) b...