Ranjani Kannan: How to convert a bytearray into a single integer.
Ram Hebbale Hiriyanna: you can't
This is not entirely true. As Jesper implies, we need more details to understand what you want to do. You can easily use a byte array to represent a single number. The question is what representation are you using? Perhaps Ram meant there is not a method in the Java API to do this. You will need to define what the byte array represents in order to answer this question meaningfully.