We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2edc683 commit eb0a8c7Copy full SHA for eb0a8c7
RN4/src/router/Router.java
@@ -164,8 +164,8 @@ public Router() throws IOException {
164
*/
165
166
public static void main(String[] args) throws IOException {
167
- nl = new NetworkLayer(args[1]);
168
- Scanner in = new Scanner(new FileReader(argv[0]));
+ nl = new NetworkLayer(Integer.valueOf(args[1]));
+ Scanner in = new Scanner(new FileReader(args[0]));
169
while (in.hasNextLine()) {
170
String line = in.nextLine();
171
String[] stary = line.split(";");
0 commit comments