阅读背景:

字符串可以用在三元条件语句中吗?

来源:互联网 

I'm (very) new to Java and have been using Codecademy, and after learning about ternary conditionals I was wondering if a string could be used in place of char? I know that strings aren't a real primitive data type in Java whereas char is, but it seems like you should be able to print out a string rather than a single character without having to use if/else statements or something similar.I'm (very) new to Java and have been using Code




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: