title: Arabic digit to English digit android
body: <p>I am using this code for translate English digit into Arabic. But now i am trying to change Arabic digits into English digit.</p>
  
  <pre><code>private void decimalToArabic() {
      String str = showOutputEdit.getText().toString();
      char[] arabicChars = {'٠','١','٢','٣','٤','٥','٦','٧','٨','٩'};
      //  char[] arabicChars = {'٩','٨','٧','٦','٥','٤','٣','٢','١','٠'};
          StringBuilder builder = new StringBuilder();
          for(int i =0;i&lt;str.length();i++)
          { 
              if(Character.isDigit(str.charAt(i)))
              {
                  builder.append(arabicChars[(int)(str.charAt(i))-48]);
              }
              else
              {
                  builder.append(str.charAt(i));
              }
          }
          System.out.println("Number in English : "+str);
          System.out.println("Number In Arabic : "+builder.toString() );
          showOutputEdit.setText(builder.reverse().toString());
  }
  </code></pre>
  
  <p>what should i need to change?</p>