forked from rastorona/practice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
31 lines (26 loc) · 939 Bytes
/
Main.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
27
28
29
30
31
package com.company;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
public class Main {
private static Solution solution = new Solution();
public static void main(String[] args)throws IOException {
Scanner scanner = new Scanner(new File("input.txt")) ;
Scanner scanner1 = new Scanner(new File("input1.txt"));
scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");
scanner1.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");
String s1=scanner.nextLine();
solution.setS(s1);
System.out.println(s1);
System.out.println();
while(scanner1.hasNext()) {
String s = scanner1.nextLine();
System.out.println();
solution.setfunc(s);
System.out.println(s);
System.out.println(solution.getS());
}
scanner.close();
scanner1.close();
}
}