The array example:
String wordList[] = {"pig", "dog", "cat", "fish", "bird"}
I have transform Str to Char , Half Width to Full Width and UpperCase. look like
for(int i = 0 ; i < str.length(); i++){
char cha = str.charAt(i);
cha = Character.toUpperCase(cha);
cha += 65248;
System.out.print(cha);
}
So, I have a question about how to make a new array such as {'p', 'i', 'g'};
toCharArray()method. That does what you need. You can use that with an enhancedforloop to iterate over your string.