To break a
String
into characters in Java, do this: string.split("")
.Here's how you do it:
String string = "Hello World!";
String[] characters = string.split("");
// [H, e, l, l, o, , W, o, r, l, d, !]
System.out.println(java.util.Arrays.toString(characters));