0
点赞
收藏
分享

微信扫一扫

java--一起加入光荣的进化吧

软件共享软件 2022-03-26 阅读 56
java
package bao;

public class lei {
	static String s1="hello ";
	public static void main(String[] args) {
		String s2="world";
		System.out.println(s1);
		System.out.println(s2);
		System.out.println();
		System.out.println(s1+" "+s2);
		
		//		System.out.println(s1);会自动换行
		
		//	如果其中变量为空,则直接换行

	}
}

举报

相关推荐

0 条评论