/** * Created by xabcd on 2019/2/11. */ public class TestJava2_1 { public static void main(String args[]) { int num; num = 3; System.out.println("这是数字"+num); System.out.println("我有"+num+"本书"); } } 将println改写成print 则打印结果不换行 这是数字3我有3本书
/** * Created by xabcd on 2019/2/11. */ public class TestJava2_1 { public static void main(String args[]) { int num; num = 3; System.out.println("这是数字"+num); System.out.println("我有"+num+"本书"); } } 将println改写成print 则打印结果不换行 这是数字3我有3本书