-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.java
More file actions
42 lines (36 loc) · 962 Bytes
/
test.java
File metadata and controls
42 lines (36 loc) · 962 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
38
39
40
41
42
import org.junit.Test;
import java.io.File;
import java.util.ArrayList;
/**
* Created by fuyux on 2017/7/4.
*/
public class test {
public static void main(String[] args){
System.out.println("!");
File file =new File("C:\\Users\\Public\\Desktop\\Google Chrome.lnk");
System.out.println(file.getAbsoluteFile());
System.out.println(file.getAbsolutePath());
System.out.println(file.getName());
System.out.println();
System.out.println();
System.out.println();
System.out.println();
}
@Test
public void t(){
ArrayList<String> list=new ArrayList<String>();
list.add("1");
list.add("2");
list.add("3");
list.add("4");
list.add("5");
list.remove(5);
for(String str:list){
System.out.println(str);
}
}
public void main(){
int a=0;
System.out.println("test");
}
}