阅读以下说明和Java程序,将应填入 (n) 处的字句写在对应栏内。
[说明]
下面程序实现十进制向其它进制的转换。
[Java程序]
ClasS Node
int data;
Node next;class Transform
private Node top;
public void print()
Node p;
while(top!=null)
P=top;
if(P.data>9)
System.out.print((char)(P.data+55));
else
System.out.print(p.data);
top=p.next;
public void Trans(int d,int i)//d为数字;i为进制
int m;
(1) n=false;
Node p;
while(d>0)
(2) ;
d=d/i;
p=new Node();
if( (3) )
p.data=m;
(4) ;
top=P;
n=true;
else
p.data=m;
(5) ;
top=P;