19 lines
253 B
Java
19 lines
253 B
Java
import java.util.Vector;
|
|
import java.util.Stack;
|
|
|
|
public class Put {
|
|
|
|
public putElement(ele, v) {
|
|
v.addElement(ele);
|
|
}
|
|
|
|
public putElement(ele, s) {
|
|
s.push(ele);
|
|
}
|
|
|
|
|
|
public main(ele, x) {
|
|
putElement(ele, x);
|
|
}
|
|
|
|
} |