Java Arrays.toString(byte[] a)
Syntax
Arrays.toString(byte[] a) has the following syntax.
public static String toString(byte[] a)
Example
In the following code shows how to use Arrays.toString(byte[] a) method.
/* w w w .j a v a 2 s . c om*/
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
// initializing byte array
byte[] b1 = new byte[] { 1, 29, 15 };
System.out.println(Arrays.toString(b1));
}
}
The code above generates the following result.
Home »
Java Tutorial »
java.util »
Java Tutorial »
java.util »