Various Java examples