Post History
Java (JDK), 88 83 bytes static void f(String s){for(int i=s.length();i>0;System.out.print(s.charAt(--i)));} Try it online!
Answer
#3: Post edited
# [Java (JDK)], 88 bytes- <!-- language-all: lang-java -->
static void f(String s){for(int i=s.length()-1;i>-1;System.out.print(s.charAt(i)),i--);}[Try it online!][TIO-kutpskv9]- [Java (JDK)]: http://jdk.java.net/
[TIO-kutpskv9]: https://tio.run/##VY6xDoIwFEVn@IqObWKbOBNM3Bx0YjQOTXmVh/Aw7QM1hG/HDji43LvcnHNbO1nd1o8ViSF460Bc5jWyZXRiGrAWXlYckO4iqtkPQaahwDKaDujOjVR6X@AhRfWJDL0ZRjbPtGcZjWtsOLJEpXaotSqWP3BvkTb29WbVnGc/UUnwEm16ZkbGzlTOEkGQmwFJGYI3n5FAqiLPvIyplmU9QdcNXw "Java (JDK) – Try It Online"
- # [Java (JDK)], <s>88</s> 83 bytes
- <!-- language-all: lang-java -->
- static void f(String s){for(int i=s.length();i>0;System.out.print(s.charAt(--i)));}
- [Try it online!][TIO-kutpxdee]
- [Java (JDK)]: http://jdk.java.net/
- [TIO-kutpxdee]: https://tio.run/##VcyxDoIwEADQWb6iMvUGGvdGEzcXJkbjcCktHEJr2pPENHx7ZXBxf3kTrthM/bOQZxsdGivaXBIjkxFroF442XEkP4gE2YUodyjonNRs/cCjBE2Xk@4@ie2iwpvVa8cskzIjxivLpiEA0NvfuSD5X3t/IOTq4GR9s/McjjXoatvKFw "Java (JDK) – Try It Online"
#2: Post edited
# [Java (JDK)], 158 bytes- <!-- language-all: lang-java -->
interface M{static void main(String[]a){String s=new java.util.Scanner(System.in).nextLine();for(int i=s.length()-1;i>-1;System.out.print(s.charAt(i)),i--);}}[Try it online!][TIO-kutpnslj]- [Java (JDK)]: http://jdk.java.net/
[TIO-kutpnslj]: https://tio.run/##LY0xC8IwEEb/SsYETMC5VHBz0KmjOBzptb0ar5Jcq1L622NAl8e3vO@NsIAd23vOxIKxA4/qsiYBIa@WiVr1AGLdSCTurzcw62@qVDO@1Fh0NwsF13hgxqibTxJ8OGLjGN9yJkZtqm6KugQU1ckF5F4Gbey@okPB35hmcc9yLTo5P0A8iiZjdmStqbYt5xOGMH0B "Java (JDK) – Try It Online"
- # [Java (JDK)], 88 bytes
- <!-- language-all: lang-java -->
- static void f(String s){for(int i=s.length()-1;i>-1;System.out.print(s.charAt(i)),i--);}
- [Try it online!][TIO-kutpskv9]
- [Java (JDK)]: http://jdk.java.net/
- [TIO-kutpskv9]: https://tio.run/##VY6xDoIwFEVn@IqObWKbOBNM3Bx0YjQOTXmVh/Aw7QM1hG/HDji43LvcnHNbO1nd1o8ViSF460Bc5jWyZXRiGrAWXlYckO4iqtkPQaahwDKaDujOjVR6X@AhRfWJDL0ZRjbPtGcZjWtsOLJEpXaotSqWP3BvkTb29WbVnGc/UUnwEm16ZkbGzlTOEkGQmwFJGYI3n5FAqiLPvIyplmU9QdcNXw "Java (JDK) – Try It Online"
#1: Initial revision
# [Java (JDK)], 158 bytes <!-- language-all: lang-java --> interface M{static void main(String[]a){String s=new java.util.Scanner(System.in).nextLine();for(int i=s.length()-1;i>-1;System.out.print(s.charAt(i)),i--);}} [Try it online!][TIO-kutpnslj] [Java (JDK)]: http://jdk.java.net/ [TIO-kutpnslj]: https://tio.run/##LY0xC8IwEEb/SsYETMC5VHBz0KmjOBzptb0ar5Jcq1L622NAl8e3vO@NsIAd23vOxIKxA4/qsiYBIa@WiVr1AGLdSCTurzcw62@qVDO@1Fh0NwsF13hgxqibTxJ8OGLjGN9yJkZtqm6KugQU1ckF5F4Gbey@okPB35hmcc9yLTo5P0A8iiZjdmStqbYt5xOGMH0B "Java (JDK) – Try It Online"