Mirror image

  • 12
  • Locked
1. Read a file name from the console. Read the contents of the file. 2. For each line in the file: 2.1. reverse the order of all characters. 2.2. display the result. 3. Close the streams. Example input file: I'm a programmer. Amigo Example result: .remmargorp a m'I ogimA
You can't complete this task, because you're not signed in.
Comments (3)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Level 40 , USA
28 February 2020, 10:19
Thank you, StringBuilder class, for your reverse() method.
Level 23 , Columbia, United States
30 August 2020, 02:36
Wow, I created a method to do this AND used StringBuilder in the method LOL. This is much better. Thanks!
Level 41
22 February 2021, 12:32
I used a reverse for loop but good to know!