/*
* This method converts an byte array to a String object.
*/
public void convertByteArrayToString() {
byte[] byteArray = new byte[] {87, 79, 87, 46, 46, 46};
String value = new String(byteArray);
System.out.println(value);
}
'Computers > Language java' 카테고리의 다른 글
Exception Handling (0) | 2011.04.20 |
---|---|
String class (0) | 2011.04.20 |
Access specifier / Modifier (0) | 2011.04.10 |
Interface / polymorphism / Event Handling / Inheritance / GUI (0) | 2011.04.10 |
week11. Input/Output and Exception Handling (0) | 2011.04.10 |