-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathMain.java
More file actions
43 lines (22 loc) · 779 Bytes
/
Main.java
File metadata and controls
43 lines (22 loc) · 779 Bytes
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
32
33
34
35
36
37
import jdk.nashorn.internal.parser.DateParser;
import org.apache.commons.io.IOUtils;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
public class Main {
public String readRawDataToString() throws Exception{
ClassLoader classLoader = getClass().getClassLoader();
String result = IOUtils.toString(classLoader.getResourceAsStream("RawData.txt"));
return result;
}
public static void main(String[] args) throws Exception{
String output = (new Main()).readRawDataToString();
System.out.println(output);
}
}