Here you can find the source of IntToPackage(int pack)
Parameter | Description |
---|---|
pack | the package you want to chance |
public static char IntToPackage(int pack)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w ww . j a v a2 s. co m *get an int into char depending on the package it represent * * @param pack the package you want to chance * @return "A" for 0,"B" for 0 .... * */ public static char IntToPackage(int pack) { // package to int A = 0 Z = 25 char iPack; pack = pack + 65; iPack = (char) pack; if (pack >= 65 && pack <= 90) return iPack; else return '#'; } }