i have to convert a string into ascii format and then into it's binary.
I know how to convert between int to binary using toBinaryString, so how to convert ascii to int.
Or is there any other way to convert string characters into binary form.
In short suppose there is a string like "how are you" , so i have to convert it into binary form.
Jump to Post
I don't know whether this is an good way of coding but i tried converting String to binary and i don't think Java uses ASCII it uses UNICODE CODE POINT.
Anyways what you can do is first convert your String to byte array by using the getBytes() method and then …
All 7 Replies
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.