Various Java Code examples