java编程题推荐(java编程软件哪个好)

2023-11-17 13:35:32 数码极客 bianji01

 

Java编程题?

packagetest;publicclassStudent{ StringID,name,sex;doublescore1,score2,score3;//具体成绩科目自己写吧 publicStudent(StringID,Stringname,Stringsex,doublescore1,doublescore2,doublescore3){ this.ID=ID;this.name=name;this.sex=sex;this.score1=score1;this.score2=score2;this.score3=score3;} publicdoublegetSum(){ returnthis.score1+this.score2+this.score3;} publicStringtoString(){ return"姓名:"+this.name+",ID:"+this.ID+",性别:"+this.sex+",score1成绩:"+this.score1+",score2成绩:"+this.score2+",score3成绩:"+this.score3+",总成绩:"+this.getSum();} publicstaticvoidmain(String[]args){ Studentstudent1=newStudent("123","张三","男",99.5,98,100);System.out.println(student1.toString());

java编程题?

获取文本区输入字符串的长度就行

java编程的题

有什么Java编程基础的小练习题给推荐一下啊

用linkedlist这个类里的add()方法添加班级 然后进入此班级 用链表的方式做

声明:易趣百科所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系315127732@qq.com
广告位招租
横幅广告