String s = "barack"; char[] t = s.toCharArray(); System.out.println(t[0]);