Decimal to Binary & Binary to Decimal - Bitwise Left-shift Operator

The Java code has two number conversion operations; first is decimal to binary conversion and second binary to decimal conversion . The bitwise left shift operator used in these both operation. Conditional switch selects the case, one of the two conversion operation is to carry out from choice input given to program. If choice is 1, switch selects case1 ( binary to decimal conversion ) and if choice is 2, switch selects case2 (decimal to binary conversion). Binary to Decimal Conversion Assume that, choice is 1 and switch selects binary to decimal conversion operation. The user is prompted enter 8 binary bits as input which is to be converted into a decimal value.Assume that, binary input given is 01100000 and it is stored into a string object “bstr” and initialize decval = 0. bstr =”[01100000]” index start 0 from left to right. decval =0; iteration n=0 decval = decval <<1; decval leftshift by 1 bit (re...