stu nicholls dot com | menu - Professional dropdown #3

click here

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"); }

}

}

Our aim is to provide information to the knowledge seekers. 

comments powered by Disqus
click here
Footer1