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