题目:
if(条件){
System.out.print("hello ");
}else{
System.out.print("world!!!");
}
把条件补充完整 使之能打印出 hello world!!! (此题应该为智力题)
public class IfElse
{
public static void main(String args[]){
if(System.out.append("hello ")==null){
System.out.print("hello ");
}else{
System.out.print("world");
}
}
}
本文探讨了一个有趣的 Java 编程智力题,通过巧妙设置 if-else 条件来实现特定字符串的输出。文章包含了一段示例代码,并提出了一种解决方案。

1187

被折叠的 条评论
为什么被折叠?



