-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathListAndCount.java
More file actions
38 lines (30 loc) · 917 Bytes
/
ListAndCount.java
File metadata and controls
38 lines (30 loc) · 917 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
import javafx.util.Pair;
import java.util.ArrayList;
public class ListAndCount {
public ArrayList<Pair<String,String>> edges;
public int numOfNodes;
public int numOfBrackets;
public ListAndCount(ArrayList<Pair<String,String>> e, int n, int b){
this.edges = e;
this.numOfNodes = n;
this.numOfBrackets = b;
}
public ArrayList<Pair<String, String>> getEdges() {
return edges;
}
public void setEdges(ArrayList<Pair<String, String>> edges) {
this.edges = edges;
}
public int getNumOfNodes() {
return numOfNodes;
}
public void setNumOfNodes(int numOfNodes) {
this.numOfNodes = numOfNodes;
}
public int getNumOfBrackets() {
return numOfBrackets;
}
public void setNumOfBrackets(int numOfBrackets) {
this.numOfBrackets = numOfBrackets;
}
}