title: How to take two digit from string in java?
body: <p>If user insert string that have ascii code numbers such as </p>
  
  <pre><code>S="7289" 
  </code></pre>
  
  <p>I want to take two digit 72 and make computations on it then and 89 and apply operations on it , how i can do it 
  .. and i want after these operations convert to their ascii code ? such as 72=H 
  This is my code (part of the code) !</p>
  
  <pre><code>System.out.println("Enter CipherText : ");
  String CipherText =scanner.next();
  System.out.println("Using Private Key :(d,n) ("+d+","+n+")");
  String ss="";
  for(int i=0;i&lt;CipherText.length();i++){
        /*String sub =CipherText.substring(i, i++);*/
        BigInteger bigIntValue1 = new BigInteger(CipherText);
        String D= bigIntValue1.modPow(d,n).toString();
        /*char ch1 = CipherText.charAt(i);
        String strAscii = String.valueOf(ch1);*/
        ss+=CipherText+" ";
  }
  System.out.println("Plain Text is :"+ss);
  </code></pre>