变量丶常量 使用「赋值运算符」'=来指定变量的值 int ageofstudent = 5i double scoreofstudent = 80.0 char levelofstudent =bi System. out. print1n("年級\t得分\t等級"); System.out. printf("号4d\t84.1f\t各4c" ageofstudent, scoreofStudent, levelofStudent code\\ VariableDemo. java变量、常量 • 使用「赋值运算符」'='来指定变量的值 int ageOfStudent = 5; double scoreOfStudent = 80.0; char levelOfStudent = 'B'; System.out.println("年級\t得分\t等級"); System.out.printf("%4d\t %4.1f\t %4c", ageOfStudent, scoreOfStudent, levelOfStudent); code\ch03\VariableDemo.java