basic java demos