2020-05-05 16:06:05 +00:00
|
|
|
import java.util.Vector;
|
|
|
|
import java.util.Stack;
|
|
|
|
|
|
|
|
public class Put {
|
|
|
|
|
2024-03-14 13:37:55 +00:00
|
|
|
public putElement(ele, v) {
|
2020-05-05 16:06:05 +00:00
|
|
|
v.addElement(ele);
|
|
|
|
}
|
|
|
|
|
2024-03-14 13:37:55 +00:00
|
|
|
public putElement(ele, s) {
|
2020-05-05 16:06:05 +00:00
|
|
|
s.push(ele);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-03-14 13:37:55 +00:00
|
|
|
public main(ele, x) {
|
2020-05-05 16:06:05 +00:00
|
|
|
putElement(ele, x);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|