Question: How would I take a user inputted binary number and make it 32 bits long? (In Java) currently this is what I am thinking but

How would I take a user inputted binary number and make it 32 bits long? (In Java)

currently this is what I am thinking but don't know how to implement it.

- check the length of the binary number

-subtract it by 32

-store the remaining bits in temp

- somehow put 0's to the left of the number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!