CLIENT import java . rmi .* ; import java . util .* ; public class client { public static void main ( String [] args ) { Scanner sc = new Scanner ( System . in ); try { String serverURL = "rmi://localhost/server" ; serverinterface Serverinterface = ( serverinterface ) Naming . lookup ( serverURL ); System . out . println ( "Enter first Number :" ); double num1 = sc . nextDouble (); System . out . println ( "Enter 2nd number:" ); double num2 = sc . nextDouble (); System . out . println ( "Fisrt Number is :" + num1 ); System . out . println ( "Fisr...
Comments
Post a Comment