Introduction
Here is the source code for MainClass.java
Source
public class MainClass {
public static void main(String[] arg) {
String text = "To be or not to be"; // Define a string
byte[] textArray = text.getBytes();
for (byte b : textArray) {
System.out.println(b);
}
}
}