Tell mistake in the code

sir see the code for difference in ascii codehttps://ide.codingblocks.com/s/125444
and tell the mistake.
also tell how to store ascii value of character

see ch+m+ch1 will result into an integer as m is of the type of integer…to correct this you can use 3 separate System.out.print…
do a dry run on this approach you will find that some characters will come twice…
so just print ch and m…run your loop till s.length()-1…in the end of the loop print the last character…

for (//change conditions of i..make it run till s.length()-1){
           ?/rest of the code
           System.out.print(ch);
           System.out.print(m);
        //    System.out.print(ch1);
           
       }
       System.out.print(s.length()-1);