Answers for "java pass large bytes"

4

convert string to byte java

String example = "Convert Java String";
  byte[] bytes = example.getBytes();
Posted by: Guest on April-23-2020
0

Float to bytes java

int intBits =  Float.floatToIntBits(value);
byte[] bs = new byte[] {
      (byte) (intBits >> 24),
      (byte) (intBits >> 16),
      (byte) (intBits >> 8),
      (byte) (intBits)
};
Posted by: Guest on November-12-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language