All a “Vector” essentially is is collection of two values: direction and speed.
Direction and Speed, viewed through another lens is just an X and Y value (coordinates). In other words, a vector is practically the same as a Point.
Now, depending on what you’re doing (physics, programming, maths, whatever) you may want to interpret the values in different ways (direction, speed, length, position etc).
Direction can be viewed as just another way of saying how the position (x and y values) should change in relation to each other (not how much they should change, speed says that).
All you need to do is know how to convert a Directional value which is usually defined by an “angle” in degrees or radians. How you do that is a simple dip into the basics of trigonometry. Java like any programming I’ve ever familiarized myself with have already code made to deal with most basic Maths thingies such as basic trigonometry. (In Java the ‘Math’ class)
For example, taking a vector with Direction 45 (north-east, 0 degrees pointing conventionally directly to the right) and Speed 100 we can with simple cosine and sine get that the resulting x and y coordinated would be just about x=71, y=71. If we change the Direction to 90 degrees we’d get x = 0 and y = 100.
You might wonder how a simple point can be viewed as a Vector? Quite simple really, the start of the vector is at position (0,0) and the end at the point (x,y). With that information you can get the length (speed), direction, whatever you need.