Amazon interview question

Implement a single linked list add and size methods using java ?