import java.util.*;
class Student{
int age,num;
String name,sex;
STUDENT(){
num=30;
age=21;
name="孙德胜";
sex="boy";
}
void get_name(){
System.out.println("姓名是:"+name);
}
void get_age(){
System.out.println("年龄为:"+age);
}
void get_num(){
System.out.println("学号是:"+num);
}
void get_sex(){
System.out.println("性别:"+sex);
}
void revise_age(){
int age1;
System.out.println("输入新的年龄:");
Scanner age1=new Scanner(System.in);
System.out.println("年龄为:"+age1);
}
String all(){
System.out.println("姓名:"+name+"年龄:"+age+"学号:"+num+"性别:"+sex);
}
}
public class test{
public static void main(String args[]){
Student student=new STUDENT();
student.get_name();
student.get_age();
student.get_num();
student.get_sex();
student.revise_age();
}
}