-3
我很確定我的邏輯是正確的,但它不打印任何東西。任何人都可以看看我的代碼。它假設向後打印字符串。但它不打印任何東西。它也不給我一個錯誤。謝謝是否有可能從反向啓動for循環
String x = input.nextLine();
for(int i = x.length()-1; i<=0;i--)
{
System.out.println(x.charAt(i));
}
變化'[通過數組中的元素循環向後]的<=' to be '> =' – 4castle
可能的複製(http://stackoverflow.com/ q/9379489/5743988) – 4castle