Package exercise.echo

Examples of exercise.echo.Echo


      usage();
      return;
    }
    String serverURL = argv[0];
   
    Echo echo  = null;  
    try {
      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

Related Classes of exercise.echo.Echo

Copyright © 2018 www.massapicom. 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.