This is what I have:
class encoded { public static void main(String[] args) { String s1 = \"hello\"; char[] ch = s1.toCharArray();
Replace i - 'a' + 1 with ch[i] - 'a' + 1
i - 'a' + 1
ch[i] - 'a' + 1
class encoded { public static void main(String[] args) { String s1 = "hello"; char[] ch = s1.toCharArray(); for(int i=0;i