Examples Written in Java

 

The Java examples are as follows: