黑马程序员技术交流社区

标题: 50道经典程序之46 [打印本页]

作者: _sunrain    时间: 2015-7-21 21:37
标题: 50道经典程序之46
题目:两个字符串连接程序
  1. public class Prog46{
  2.         public static void main(String[] args){
  3.                 String str1 = "lao lee";
  4.           String str2 = "牛刀";
  5.           String str = str1+str2;
  6.           System.out.println(str);
  7.         }
  8. }
复制代码





欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2