words = words==null?"":words; java语言,
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/20 01:41:42
words=words==null?"":words;java语言,words=words==null?"":words;java语言,words=words==null?"":words;java语
words = words==null?"":words; java语言,
words = words==null?"":words; java语言,
words = words==null?"":words; java语言,
这是三元表达式,类似于 if else . ? 表示真,: 表示假
等同于下面:
if (words == null) {
words = "";
}else{
words = words;
}