結果 : convert string to char array in java without using library functions