-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTwitter.java
More file actions
30 lines (27 loc) · 851 Bytes
/
Copy pathTwitter.java
File metadata and controls
30 lines (27 loc) · 851 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
package twitter;
public class Twitter {
public static void main(String[] args) {
Parser prsr = new Parser();
String filename = args[0]; //This file is read out
int sline = Integer.parseInt(args[1]); //The string, which we start reading
int scount = Integer.parseInt(args[2]); //The number of lines to be read
prsr.StringsReader(filename, sline, scount);
/*System.out.println("Strings:");
for (String s : prsr.getStrs()) {
prsr.ShowStrings(s);
}
*/
/*ParserCSV csv = new ParserCSV();
System.out.println("Sentiments:");
for (String s : prsr.getStrs()) {
csv.CSVReader(s);
csv.ShowSentiment();
}*/
TweetsParser twparser = new TweetsParser();
System.out.println("Tweets:");
for (String s : prsr.getStrs()) {
twparser.TweetsReader(s);
twparser.ShowTweet();
}
}
}