Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit af5b70e

Browse filesBrowse files
author
rpytel1
committed
Assignment2: changes to packages
1 parent 5d90073 commit af5b70e
Copy full SHA for af5b70e

File tree

Expand file treeCollapse file tree

2 files changed

+11
-11
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+11
-11
lines changed

‎Assignment2/src/assignment2/server/Client1.java

Copy file name to clipboardExpand all lines: Assignment2/src/assignment2/server/Client1.java
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
package src.assignment2.server;
1+
package assignment2.server;
2+
3+
import assignment2.util.Constant;
4+
import assignment2.util.IComponent;
25

36
import java.io.BufferedReader;
47
import java.io.FileReader;
@@ -10,10 +13,6 @@
1013
import java.util.ArrayList;
1114
import java.util.Scanner;
1215

13-
import src.assignment2.util.Constant;
14-
import src.assignment2.server.RemoteProcess;
15-
import src.assignment2.util.IComponent;
16-
1716
public class Client1 {
1817
private static IComponent[] RMI_IDS; // Array with the remote processes
1918
private static int numProc; // number of remote processes created

‎Assignment2/src/assignment2/server/Client2.java

Copy file name to clipboardExpand all lines: Assignment2/src/assignment2/server/Client2.java
+7-6Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package src.assignment2.server;
1+
package assignment2.server;
22

33
import java.io.BufferedReader;
44
import java.io.FileReader;
@@ -10,9 +10,8 @@
1010
import java.util.ArrayList;
1111
import java.util.Scanner;
1212

13-
import src.assignment2.util.Constant;
14-
import src.assignment2.server.RemoteProcess;
15-
import src.assignment2.util.IComponent;
13+
import assignment2.util.Constant;
14+
import assignment2.util.IComponent;
1615

1716
public class Client2 {
1817
private static IComponent[] RMI_IDS; // Array with the remote processes
@@ -24,13 +23,15 @@ public class Client2 {
2423
public static void main(String[] args) throws AlreadyBoundException, NotBoundException, IOException, InterruptedException {
2524

2625
// "clients" files contain the name of the remote processes used
27-
BufferedReader br = new BufferedReader(new FileReader("tests/clients3.txt"));
26+
BufferedReader br = new BufferedReader(new FileReader("tests/clients3.txt"));
27+
28+
2829
String line = br.readLine();
2930
numProc = Integer.parseInt(line);
3031
localProc = 0;
3132
int i = 0;
3233
local = new int[numProc];
33-
localIDS = new ArrayList<Integer>();
34+
localIDS = new ArrayList<>();
3435
while ((line = br.readLine()) != null) {
3536
String[] split_line = line.split(" ");
3637
if(Integer.parseInt(split_line[1]) == 2){

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.