三位运算符,联系操作
时间:2015-12-02 20:18:53
收藏:0
阅读:276
package hello; public class gaofushuai { public static void main(String[] args){ int a=1; int b=1; int c=1; String str=a>0?"高":"矮"; String www=b>0?"富":"穷"; String sss=c>0?"帅":"丑"; System.out.print(str+www+sss); } }
原文:http://www.cnblogs.com/php111/p/5013771.html
评论(0)