Java Integer to int2Char(int i)

Here you can find the source of int2Char(int i)

Description

converts from 2-bit representation to character representation

License

Open Source License

Declaration

public static char int2Char(int i) 

Method Source Code

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

public class Main {
    /** converts from 2-bit representation to character representation
     *//*ww  w.ja  va2s.  c  om*/
    public static char int2Char(int i) {
        switch (i) {
        case 0:
            return 'A';
        case 1:
            return 'T';
        case 2:
            return 'G';
        case 3:
            return 'C';
        }
        return 'n';
    }
}

Related

  1. int2ABC(int index)
  2. int2array(int sz, int seed)
  3. int2ba(int integer)
  4. int2BigEndianStr(int i)
  5. int2buff(int n)
  6. int2Date(Integer date, String interval)
  7. int2ddouble(final int i)
  8. int2double(int[] ia)
  9. int2EyptStr(int num)