Java Example 1 Artificial Intelligence