亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

大神,求教!急急急

大神,求教!急急急

csh_001 2016-01-03 22:36:10
//student ? import?java.sql.*; ? ? ? public?class?Student ? { ? ???????private?String?id; ? ???????private?String?name; ? ???????private?int?math; ? ???????private?int?english; ? ???????private?int?java; ? ???????private?int?computer; ? ? ? ???????public?String?getId() ? ???????{ ? ??????????????return?id; ? ???????} ? ? ? ???????public?void?setId(String?id) ? ???????{ ? ??????????????this.id?=?id; ? ???????} ? ? ? ???????public?String?getName() ? ???????{ ? ??????????????return?name; ? ???????} ? ? ? ???????public?void?setName(String?name) ? ???????{ ? ??????????????this.name?=?name; ? ???????} ? ? ? ???????public?int?getMath() ? ???????{ ? ??????????????return?math; ? ???????} ? ? ? ???????public?void?setMath(int?math) ? ???????{ ? ??????????????this.math?=?math; ? ???????} ? ? ? ???????public?int?getEnglish() ? ???????{ ? ??????????????return?english; ? ???????} ? ? ? ???????public?void?setEnglish(int?english) ? ???????{ ? ??????????????this.english?=?english; ? ???????} ? ? ? ???????public?int?getJava() ? ???????{ ? ??????????????return?java; ? ???????} ? ? ? ???????public?void?setJava(int?java) ? ???????{ ? ??????????????this.java?=?java; ? ???????} ? ? ? ???????public?int?getComputer() ? ???????{ ? ??????????????return?computer; ? ???????} ? ? ? ???????public?void?setComputer(int?computer) ? ???????{ ? ??????????????this.computer?=?computer; ? ???????}
查看完整描述

1 回答

?
ai睡的熊

TA貢獻27條經驗 獲得超5個贊

你想知道什么

查看完整回答
反對 回復 2016-01-04
  • csh_001
    csh_001
    Keyboard那里有錯誤,你沒看出來嗎?我想讓它運行正確,最好能把數據庫那部分改成普通的句子,因為我們沒學數據庫,這是引用了網上的一部分內容。
  • ai睡的熊
    ai睡的熊
    問題是我這里看到的只有實體類,只有屬性的封裝和set/get方法,這個類是無法運行的,需要main函數去調用,可能你的代碼還不全,你可以把全部的都發出來
  • 1 回答
  • 0 關注
  • 1518 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號