Here you can find the source of printBytes(String x)
public static void printBytes(String x)
//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 } }