pratice about java topic demo