Java Integer to String inttostr(String intStr)

Here you can find the source of inttostr(String intStr)

Description

inttostr

License

Open Source License

Declaration

public static String inttostr(String intStr) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String inttostr(String intStr) {
        String returnStr = "";
        for (int i = 0; i < intStr.length(); i++) {
            if (String.valueOf(intStr.charAt(i)).equals("1"))
                returnStr += "a";
            if (String.valueOf(intStr.charAt(i)).equals("2"))
                returnStr += "b";

            if (String.valueOf(intStr.charAt(i)).equals("3"))
                returnStr += "c";
            if (String.valueOf(intStr.charAt(i)).equals("4"))
                returnStr += "d";

            if (String.valueOf(intStr.charAt(i)).equals("5"))
                returnStr += "e";
            if (String.valueOf(intStr.charAt(i)).equals("6"))
                returnStr += "f";

            if (String.valueOf(intStr.charAt(i)).equals("7"))
                returnStr += "g";
            if (String.valueOf(intStr.charAt(i)).equals("8"))
                returnStr += "h";

            if (String.valueOf(intStr.charAt(i)).equals("9"))
                returnStr += "i";
            if (String.valueOf(intStr.charAt(i)).equals("0"))
                returnStr += "j";

        }//from  w ww .ja v a  2 s.c  o  m
        return returnStr;

    }
}

Related

  1. intToStr(int priceInt)
  2. intToStr(int val)
  3. intToStr(int valor, int len)
  4. intToStr(int value)
  5. intToStr(int value, int len)
  6. intToStr3(final int param)
  7. intToString(final int param)
  8. intToString(final int value)
  9. intToString(final Integer value)