IBM interview question

1. How will you print the binary form of an integer. 2. How to reverse a string.

Interview Answers

Anonymous

1 Jul 2016

new StringBuilder(hi).reverse().toString()

2

Anonymous

1 Jul 2016

i would i have to write my own method to do the transformation to binary

3