If you wish to have some online practice examples we recommend
You can also learn about the Java API by reading the Java Doc