vijay umar wrote:code to convert the alphabetic characters into binary form
This doesn't make sense. In java, and in fact all computing languages and computers in general, everything is stored in binary. that's all they understand are 1's and 0's. so, what you see as an 'a' is really stored as a number, and that is stored as a binary number. It all happens automatically.
So tell us what you really want to do. do you want to save the number? do you want to print the number value? do you want to use the pre-defined ASCII values, or come up with your own?
The single most important part of writing code is understanding what you want to do, and spec it out.