Here I will provide some code example in Java