-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.java
More file actions
49 lines (35 loc) · 1.06 KB
/
Copy pathTest.java
File metadata and controls
49 lines (35 loc) · 1.06 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Random;
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("hello, world");
String str = "a b c d ";
String[] strs = str.split("\t", 2);
System.out.println("size = " + strs.length);
for (String s : strs) {
System.out.println("s=" + s +"*");
}
String str1 = "abced\t";
System.out.println("str1=" + str1);
System.out.println("str2=" + str1.substring(0, str1.length()-1));
try {
//Runtime.getRuntime().exec("/bin/sh -c /bin/ls tempScore");
String cmd = "./evalModel/EvaluateClassifier.exe -f:tempScore -r:roc -s:summary";
Process p = Runtime.getRuntime().exec(cmd);
p.waitFor();
BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line = null;
while ((line = br.readLine()) != null) {
System.out.println(line);
}
br.close();
} catch (Exception ex) {
ex.printStackTrace();
}
}
}