(1)
package human;
public class Person
{
String name;
char sex;
int age;
string ID;
public void print(String name,char sex,int age,string ID)
{
System.out.println("姓名:"+name+" 性别:"+sex+" 年龄:"+age+" 身份证号码:"+ID"');
}
public static void main(String[] args){
Person Testperson = new Person();
Testperson.print("张三",'男',18,"430101010101010101010101"");
Testperson.print("李四",'女',18"12345678900987654332"");
}
}
懵