Print Zero Even Odd

Problem printNumber(7) prints 7 to the console. You are given an instance of the ZeroEvenOdd class with 3 functions: zero outputs 0 s, even outputs even numbers, and odd outputs odd numbers. The same ZeroEvenOdd instance is passed to three different threads, where thread A calls zero() , thread B calls even() , and thread C calls odd() . Modify ZeroEvenOdd such that given n=6 , it outputs…