Java-note-字符串连接

String a="100";

int b=2;

String c=a+b;

then the answer is c=1002;

 

+ make the two sides become String when there is at least one String exsit.

posted @ 2013-09-15 15:31  ling-note  阅读(208)  评论(0编辑  收藏  举报