(View bits) Write the following method that displays the bit representation for the last byte in an integer:
public static String getBits(int value)
For a hint, see Programming Exercise 4.46. Write a program that prompts the user to enter a file name, reads bytes from the file, and displays each byte’s binary representation.
Ref:
(Computer architecture: bit-level operations) A short value is stored in 16 bits. Write a program that prompts the user to enter a short integer and displays the 16 bits for the integer. Here are sample runs:
(Hint: You need to use the bitwise right shift operator (>>) and the bitwise AND operator (&), which are covered in Appendix G, Bitwise Operations.)
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.