vector formulas

I have to write a 2D Vector class in Java, that supports the operation of the vector addition subtraction, scalar multiplication, and division and taking the length and unit vector, where each method returns a new Vector.
I would be grateful if someone could provide a resource link or write this formulas.