java 两个字符串连接程序

来源:互联网 发布:mac无法存储屏幕快照 编辑:程序博客网 时间:2024/06/09 14:05

题目:

两个字符串连接程序

代码:

public class Prog46{    public static void main(String[] args){        String str1 = "lao lee";      String str2 = "牛刀";      String str = str1+str2;      System.out.println(str);    }}