Java:将100以内的数字翻译成英文。问:为什么输入后没有输出
package ch02;import java.util.Scanner;
public class L {
public static void main(String[] args) {
int x[] = { 0, 1};
int y[]={ 2, 3, 4, 5, 6, 7, 8, 9 };
int h[]={1,2,3,4,5,6,7,8,9};
String z[] = { "zero", "one", "two", "three", "four", "five", "six",
"eight", "nine" };
String w[] = {"ten", "eleven", "twelve", "thirteen", "fourteen",
"fifteen", "sixteen", "seventeen", "eighteen", "nineteen" };
String t[] = {"twenty", "thirty", "fourty", "fifty", "sixty",
"seventy", "eighty", "ninty" };
Scanner sin=new Scanner(System.in);
System.out.println("请输入数字");
int m=sin.nextInt();
int num[]=new int[m];
for(int i=0;i<3;i++){
num[i]=sin.nextInt();
}
for(int j=0;j<3;j++)
{
if(num[0]==1)
{
for(int i=0;i<10;i++)
{
if(num[1]==x[i])
{
System.out.println(w[i]);
}
}
}
else if(num[0]==0)
{
for(int i=0;i<10;i++)
{
if(num[1]==x[i])
{
System.out.println(z[i]);
}
}
}
else
{
for(int i=0;i<10;i++)
{
if(num[0]==y[i])
{
for(int a=0;a<10;a++)
{
if(num[1]==h[a])
{
System.out.println(t[i]+"-"+z[i+1]);
}
else if(num[1]==0)
{
System.out.println(t[a]);
}
}
}
}
}
}
sin.close();
}
}