It is very hard to write any program without using Variables. And when we use variable, the first thing we want to do is to assign it some values. Variables are like storage of data, so it is natural for us to put some values to this storage. In this post, we will show how to use the Assignment operator in Java, which assigns values to a variable.