这是我的代码,在不使用任何API的情况下打印在Java中反转的字符串字符.但它没有正常工作.任何人都可以帮我纠正吗?
public static void main(String args[]) {
String input = "I am test";
String result = "";
for (int i = input.length() - 1; i > 0; i--) {
Character c = input.charAt(i);
if (c != ' ') {
result = c + result;
} else {
System.out.println(result + " ");
}
}
}
Run Code Online (Sandbox Code Playgroud)
它输出"test amtest",输出应该是"test am I".
请帮助我在不使用预定义方法或API的情况下获得准确的输出.
我正在使用netbeans创建一个示例应用程序,其中包含一些css文件.我正在使用以下标签:
@media screen and (max-width: 320px) {
#hero{height: 480px;}
.herocontent{padding-top: 100px; padding-bottom: 30px;}
}
Run Code Online (Sandbox Code Playgroud)
此标记显示错误为"未找到预期的符号和"消息.
@media only screen and (max-width: 500px) {
.gridmenu {
width:100%;
}
}
Run Code Online (Sandbox Code Playgroud)
此标记显示错误为"未预期符号找到屏幕"消息.请帮我解决这些问题.
我有一个 install.exe 文件。是否可以使用 Inno Setup 打开 .exe 文件?