Package exercise.echo

Examples of exercise.echo.Echo.reverse()


      echo = (Echo)Naming.lookup(argv[0]);
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      while(true) {
  System.out.print("Type a string: ");
  String s = in.readLine();
  String reply = echo.reverse(s);
  System.out.println("The reply from " + serverURL + " is [" + reply + "].");
      }
    }
    catch (Exception e) {
      System.out.println("X exception: " + e.getMessage());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.