In: Computer Science
write a program that replace each line of a file with its reverse. for example, if you run:
java Reverse HelloPrinter.java
then the contents of HelloPrinter.java are changed to
retnirPolleH ssalc clibup
{
)sgra ][gnirtS(niam diov citats clibup
{
wodniw elosnoc eht ni gniteerg a yalpsiD //
;) "!dlroW ,olleH " (nltnirp.tuo.mestyS
}
}