数据类型为啥明明强制转换了还会错
public class HelloWorld{
public static void main(String[] args) {
double heightAvg1=176.2;
int heightAvg2=(int)heightAvg1;
System.out.println(heightAvg1);
System.out.println(heightAvg2);
}
}
输入上面的代码出现以下错误error: cannot find symbol
int heightAvg2=inrheightAvg1;
^
symbol: variable inrheightAvg1
location: class HelloWorld
1 error