freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java課程設(shè)計(jì)--計(jì)算器-資料下載頁(yè)

2025-06-06 17:13本頁(yè)面
  

【正文】 )。 String s=null。 if((dot)==1)//加入數(shù)字中不含有小數(shù)點(diǎn)。 { s=(dot)。 鏈表 .set(0, s)。 } else//如果數(shù)字中已含有小數(shù)點(diǎn)。 { s=num。 } 鏈表 .set(0, s)。 (s)。 } else if(鏈表 .size()==3) { String dot=小數(shù)點(diǎn)按鈕 .getLabel()。//獲取按鈕上的小數(shù)點(diǎn)。 String num=(String)鏈表 .getFirst()。 String s=null。 if((dot)==1) { s=(dot)。 鏈表 .set(2, s)。 } else { s=num。 } (s)。 } } else if(()==退格按鈕 ) { 計(jì)算器 14 if(鏈表 .size()==1) { String num=(String)鏈表 .getFirst()。 if(()=1) { num=(0, ()1)。 鏈表 .set(0, num)。 (num)。 } else { 鏈表 .removeLast()。 (0)。 } } else if(鏈表 .size()==3) { String num=(String)鏈表 .getLast()。 if(()=1) { num=(0, ()1)。 鏈表 .set(2, num)。 (num)。 } else { 鏈表 .removeLast()。 (0)。 } } } else if(()==正負(fù)號(hào)按鈕 ) { if(鏈表 .size()==1) { String number1=(String)鏈表 .getFirst()。 try { double d=(number1)。 d=1*d。 String str=(d)。 鏈表 .set(0, str)。 (str)。 } catch(Exception ee) { } } Java 程序設(shè)計(jì)課程設(shè)計(jì)報(bào)告( 2021) 15 else if(鏈表 .size()==3) { String number2=(String)鏈表 .getFirst()。 try { double d=(number2)。 d=1*d。 String str=(d)。 鏈表 .set(2, str)。 (str)。 } catch(Exception ee) { } } } else if(()==求倒數(shù)按鈕 ) { if(鏈表 .size()==1||鏈表 .size()==2) { String number1=(String)鏈表 .getFirst()。 try { double d=(number1)。 d=。 String str=(d)。 鏈表 .set(0, str)。 (str)。 } catch(Exception ee) { } } else if(鏈表 .size()==3) { String number2=(String)鏈表 .getFirst()。 try { double d=(number2)。 d=。 String str=(d)。 鏈表 .set(0, str)。 (str)。 } catch(Exception ee) { } } } 計(jì)算器 16 else if(()==清零按鈕 ) { 是否按下等號(hào) =false。 (0)。 鏈表 .clear()。 } } public static void main(String[] args) { new ComputerPad()。 } } 附錄 Ⅱ 源程序清單 import .*。 public class NumberButton extends Button { int number。 public NumberButton(int number) { super( +number)。 =number。 setForeground()。 } public int getNumber() { return number。 } } 附錄 Ⅲ 源程序清單 import .*。 public class OperationButton extends Button { String operator。 public OperationButton(String s) { super(s)。 operator=s。 setForeground()。 } Java 程序設(shè)計(jì)課程設(shè)計(jì)報(bào)告( 2021) 17 public String getOperator() { return operator。 } }
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1