- Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathMyClient.java
26 lines (21 loc) · 689 Bytes
/
MyClient.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
packageMultiples;
importjava.rmi.*;
importjava.util.Scanner;
publicclassMyClient {
publicstaticvoidmain(Stringargs[]) {
Scannersc = newScanner(System.in);
System.out.print("Enter number of data: ");
intn = sc.nextInt();
System.out.println("Enter data separated by space: ");
for (inti = 0; i < n; i++) {
intk = sc.nextInt();
intj = sc.nextInt();
sc.nextLine();
try {
Modderstub = (Modder) Naming.lookup("rmi://localhost:1900" + "/sonoo");
System.out.println(stub.modd(k, j));
} catch (Exceptione) {
}
}
}
}