CodeGym/Java Course/Multithreading Java/Esercitati con gli operatori logici

Esercitati con gli operatori logici

Disponibile

"Ciao, Amico!"

18
Compito
Java Multithreading,  livello 10lezione 6
Bloccato
Fork/Join
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.
9
Compito
Java Multithreading,  livello 10lezione 6
Bloccato
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.
18
Compito
Java Multithreading,  livello 10lezione 6
Bloccato
Bit operations
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.
Commenti
  • Popolari
  • Nuovi
  • Vecchi
Devi avere effettuato l'accesso per lasciare un commento
Questa pagina non ha ancora commenti