Developing AI and ML Solutions with Java: Expert Systems and Reinforcement Learning