class Student
{
String name;
int age;
int sum=0;
int ave=0;
int Chinese;
int English;
int Math;
public void show(String name,int age)
{
this.name=name;
this.age=age;
System.

展开全部
收起
4回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • Madelyn

    19人对此回答表示赞同

    class Student {
    String name;
    int age;
    int sum = 0;
    int ave = 0;
    int Chinese;
    int English;
    int Math;

    public void show(String name, int age) {
    this.name = name;
    this.age = age;
    Syst
    展开
    19
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • Savannah

    16人对此回答表示赞同

    确定内部类能这么用?为什么不分开写。这种代码不可取啊
    展开
    16
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • Sarah

    13人对此回答表示赞同

    简化后的代码:
    public class Student {

    String name;
    int age;
    int sum=0;
    int ave=0;
    int Chinese;
    int English;
    int Math;
    public Student(String string, int i, int j) {
    this.name=string;
    展开
    13
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 未语泪先流

    9人对此回答表示赞同

    修改2句即可
    1
    System.out.printf("姓名:"+this.name + ", 年龄"+this.age);

    2
    System.out.printf("平均分:" + per1.average(per1.sum));
    展开
    9
    0回复
    发布于 6年前

    评论(0)

    收起评论

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部