Konversi string ke array char di java

String str = "example";
char[] ch = str.toCharArray(); 
Pable Sorren