-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.java
More file actions
executable file
·34 lines (27 loc) · 692 Bytes
/
Copy pathlist.java
File metadata and controls
executable file
·34 lines (27 loc) · 692 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
package test;
import array.LIS;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Created by Administrator on 2018/4/2 0002.
*/
public class list
{
public static void main(String[] args) {
int [] board=new int[]{1,2,3};
int [] boardtmp=Arrays.copyOf(board,3);
int [] boardclone=board.clone();
int [] boardtmp2=board;
change(boardtmp);
change(boardclone);
for(int a:boardtmp){
System.out.println(a);
}
for(int b:board){
System.out.println(b);
}
}
public static void change(int p[]){
p[0]=4;
}}