第6題 Given: 1. public class Breaker{ 2. s..-阿摩線上測驗
4F 【站僕】摩檸Morning 國三下 (2017/08/02)
原本題目: 查看完整內容 |
5F
|
6F Mata 高三下 (2020/07/28)
這題應該要切兩次來看 static String o = ""; static String c = ""; public static void main(String[] args) { o = o + 2; for (int x = 3; x < 8; x++) { if (x == 4) break; o = o + x; } c = c + 2; z: for (int x = 3; x < 8; x++) { if (x == 6) break z; c = o + x; } System.out.println(o); System.out.println(c); } } o = 23 查看完整內容 |