Simple Strategy Java Example