Find error in the (fail in the 3 rd test case)code . No numerals in codecoach
import java.util.Scanner; import java.lang.String; public class Name { public static void main(String args[]) { Scanner sc=new Scanner(System.in); String st=sc.nextLine(); int k; for(int i=0;i<st.length();i++) { k=st.charAt(i); if((k>48)&&(k<58)) { chandu.fun(k); i++; } System.out.print(st.charAt(i)); } } } class chandu{ static void fun(int i) { switch(i) { case 49: System.out.print("one"); break; case 50: System.out.print("two"); break; case 51: System.out.print("three"); break; case 52: System.out.print("four"); break; case 53: System.out.print("five"); break; case 54: System.out.print("six"); break; case 55: System.out.print("seven"); break; case 56: System.out.print("eight"); break; case 57: System.out.print("nine"); break; /* case 48: System.out.print("zero"); break; */ } } }