Client Program: dollarclient.java


import java.rmi.*;

import java.lang.*;

public class dollarclient

{ public static void main(String args[])

{ long a;

try

{

System.out.println("\n\nHello I Am In Client\n\n");

String dollarserverurl="rmi://"+args[0]+"/dollarserver";

dollar dollar=(dollar)Naming.lookup(dollarserverurl);

System.out.print("\n\nEquivalent value is Rupees is: ");

a=Long.parseLong(args[1]);

System.out.println(dollar.change(a));

}

catch (Exception e)

{ System.out.println("not able to connect to server"); }

}

}

Interface implementation file: dollarimp.java << Previous
Next >>Server Program: dollarserver.java

Our aim is to provide information to the knowledge seekers. 


comments powered by Disqus








Footer1