伊利股份今天股价:JAVA需要标识符??

来源:百度文库 编辑:高考问答 时间:2024/05/05 10:52:44
import java.io. * ;
class AutTypeTransition
{
piblic static void main(String args[])
{
char a='j';
byte b=6;
int i=100;
long l=455L;
float f=4.44f;
double d=4.6526;
int aa=a+i;
long ll=l-aa;
float ff=b*f;
double dd=ff/aa+d;
System.out.println("aa="+aa);
System.out.println("ll="+ll);
System.out.println("ff="+ff);
System.out.println("dd="+dd);
};
}
从书上copy下来的,提示第4行需要标识符.

public是java的保留字,也叫关键字,不可以写错的.把你的代码中第四行的piblic修改为public就对了.

piblic => public