/ * * CopyRight (C) 2004 Your Corporation. All rights reserved. * /
/ ** * Created by Intellij IDEA. * User: jason ying * date: 19:42:53 * Time: 19:42:53 * To change this template use file | settings | file templates. * / Import java.io. *;
public class Reversed {public static void main (String [] args) throws IOException {BufferedReader in = new BufferedReader (new InputStreamReader (System.in)); for (;;) {System.out.print ( "Please input line:" String line = in.readline ();
IF (Line.Equals)) Break; Else {Try {for (INT I = line.length () - 1; I> = 0; I -) {System.out.Print (line.charat (Line.Charat) I));} system.out.println ();} catch (exception e) {system.out.println ("invalid infut");}}}}}