-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStackElement.java
More file actions
50 lines (39 loc) · 890 Bytes
/
StackElement.java
File metadata and controls
50 lines (39 loc) · 890 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
43
44
45
46
47
48
49
import java.util.*;
public class StackElement {
private int x;
private int y;
private List<Integer> list;
// Constructeur
public StackElement(int x, int y, List<Integer> possibleValues) {
this.x = x;
this.y = y;
this.list = possibleValues;
}
// Getters et Setters
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public int getY() {
return y;
}
public void setY(int y) {
this.y = y;
}
public List<Integer> getPossibleValues() {
return list;
}
public void setPossibleValue(List<Integer> list) {
this.list = list;
}
@Override
public String toString() {
return "StackElement{" +
"x=" + x +
", y=" + y +
", list=" + list +
'}';
}
}