Google usually helps

If you make a class that accepts object's as a parameter for its methods it should be able to handle all primitive types (in wrapper form).

Push (obj)
Pop (obj)
PeekTop (obj)
isEmpty (boolean)
clear (void)
size (int)

and you could use arrays or arraylists to implement those functions

hope that helped a bit