残殇飞羽
2015-01-18 18:08
public class HelloWorld{
public static void main(String[] args) {
final char S = '男',T = '女';
System.out.println(S+T);
}
}
//有字符串时+才识别为连接符,两个字符的话+号识别为运算符。
//输出字符串一般可以在前面加个空字符串
System.out.println(""+S+T);Java入门第一季(IDEA工具)
1168053 学习 · 18753 问题
相似问题