Example of command based java - Chad