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()方法添加班级 然后进入此班级 用链表的方式做