//import dataStructure.linearList.LinkedStack; public class TransportNum { public static void main(String args[ ]) { LinkedStack<String> stack = new LinkedStack<String>(); int N=27; int d=16; System.out.print("("+N+")10 = ("); while(N!=0) { int r; r=N%d; N=N/d; switch(r){ case 10: r=65;break; case 11: r=66;break; case 12: r=67;break; case 13: r=68;break; case 14: r=69;break; } stack.push(new String(""+N+(char)r)); }