Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package javaapplication5;
- /**
- *
- * @author student
- */
- public class Stos<T> {
- T[] tab;
- int n=0; //liczba el. na stosie //mozna tez uzywac go jako indeksu talbicy
- void push(T e) {
- try {
- tab[n] = 1;
- } catch (Exception ex) {
- }
- }
- void pop(T x) {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement