1. Create a BinaryRepresentationTask class. To do this, click Alt+Enter -> Create Class... on the red class name in IntelliJ IDEA. (The class must inherit RecursiveTask). The constructor's parameter is int x. 2. Implement the compute method: the number should be converted to binary.
Such tricky exceptions!
Fix the implementation of the checkAFlag method so that it never throws exceptions. Preserve the screen output logic. The main method is not tested.
You must implement a public int resetLowerBits(int number) method. It should clear all the bits in the number argument, except the highest bit set to one, and then return this number. An int is 4 bytes = 32 bits.