Daniel Holle
ebd6a00a39
All checks were successful
Build and Test with Maven / Build-and-test-with-Maven (push) Successful in 2m50s
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);
|
|
}
|
|
|
|
} |