Initial commit
This commit is contained in:
6
src/cl/cromer/estructuras/code/pila/push
Normal file
6
src/cl/cromer/estructuras/code/pila/push
Normal file
@@ -0,0 +1,6 @@
|
||||
public void push(int valor) {
|
||||
// Sumar el nivel de la pila
|
||||
encima++;
|
||||
// Insertar el valor
|
||||
this.pila[encima] = valor;
|
||||
}
|
Reference in New Issue
Block a user