binary « Development « Java Swing Q&A





1. How to convert from binary to int?    coderanch.com

HI... Sorry to bother you again, but I've tried the following code and it doesn't seem to work. Can you explain why to me please? (I'm sure it's some lil problem) public int binaryToInt(String bitString) { int sum = 0, x = 0; char bitShiftedChar; String bitShifted; int bitShiftedInt; int strLength = bitString.length(); for (int bit = (strLength-1); bit >= 0; ...

2. double to binary    coderanch.com

I am trying to read in a double value, as a reading from 32.0 to 44.0. I read this in from getaReading ( a text box) and this inputs ok. I want to then change it to a binary value to sent to another class to simulate a temperature input. 32.0 will be 00000001, then 1 bit added for each 0.1 ...

3. Compile swing application to binary    forums.oracle.com