Java Byte Array Print printBytes(String x)

Here you can find the source of printBytes(String x)

Description

print Bytes

License

Open Source License

Declaration

public static void printBytes(String x) 

Method Source Code

//package com.java2s;

public class Main {

    public static void printBytes(String x) {
        byte[] xbt = x.getBytes();
        for (int i = 0; i < xbt.length; i++) {
            System.out.print(xbt[i] + ",");
        }//from   w  w  w. j  a  v a2s . co  m
    }
}

Related

  1. printBytes(byte[] bytes)
  2. printBytes(byte[] bytes)
  3. printBytes(byte[] bytes, int offset)
  4. printBytes(byte[] data)
  5. printBytes(String comment, byte[] input)
  6. printBytesHexEncoded(final byte[] byteArray)
  7. printByteSize(long bytes)
  8. printBytesToString(byte[] bytes, String structName)
  9. printByteWithChar(byte[] byteArray)