明解JAVA 第一章答案

练习1-1

无法运行

练习1-2

package candle1220;



    class Nightwatch{

        public static void main(String[] args) {
            System .out .print("柴\n田\n望\n洋");
        }
    }

练习1-3

package candle1220;



    class Nightwatch{

        public static void main(String[] args) {
            System .out .print("柴\n田\n\n望\n洋");
        }
    }

 

猜你喜欢

转载自www.cnblogs.com/nightswatch-candle/p/11986693.html