Java Number Convert numToLetter(String input)

Here you can find the source of numToLetter(String input)

Description

num To Letter

License

Open Source License

Declaration

public static String numToLetter(String input) 

Method Source Code

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

public class Main {
    public static String numToLetter(String input) {
        StringBuffer sb = new StringBuffer();
        byte[] bytes = input.getBytes();
        for (int i = 0; i < bytes.length; i++) {
            if (i % 2 == 0) {
                sb.append((char) (bytes[i] + 49));
            } else {
                sb.append((char) (bytes[i] + 17));
            }/*www  .ja v  a2s .c o  m*/

        }

        return sb.toString();
    }
}

Related

  1. numToBytes(byte[] buffer, long value)
  2. numToBytes(byte[] buffer, long value, int radix)
  3. numToBytes(long value, byte[] b, int off, int len)
  4. numToInt(Number n)
  5. numToIPv4(StringBuilder host)
  6. numToPowerOf(int num, int toPowerOf)
  7. numToStringWithOrder(long count)
  8. numToWords(long num)
  9. parseAmountConversionRate(String convRate)