⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 -

📁 详细对一般字符串表达式解析
💻
📖 第 1 页 / 共 5 页
字号:
                        }<BR>&nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; else if(s=="退出")<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        System.exit(1);&nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; }<BR>&nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; else if(s=="MS")<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        {<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String 
                        before = tf.getText();<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; tmp7 = 
                        Double.parseDouble(before);<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; s2 = 
                        Double.toString(tmp7);<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; tf1.setText(" M");<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; flag = false;<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; }<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        <BR>&nbsp; &nbsp; &nbsp; &nbsp; else 
                        if(s=="MR")<BR>&nbsp; &nbsp; &nbsp; &nbsp; {<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        tf.setText(s2);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; flag = false;<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        }<BR>&nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; else if(s=="MC")<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s2 
                        = "";<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        tf1.setText("");<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        }<BR>&nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; else if(s=="M+")<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        tmp7 = tmp7 + 
                        Double.parseDouble(tf.getText());<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; s2 = 
                        Double.toString(tmp7);<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; flag = false;<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; }<BR>&nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; else if(s=="关于计算器")<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; d = new AboutDialog(f);<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; d.display();<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; }<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        <BR>&nbsp; &nbsp; &nbsp; &nbsp; else 
                        if(s=="帮助主题")<BR>&nbsp; &nbsp; &nbsp; &nbsp; {<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; d1 = new 
                        HelpDialog(f);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; d1.display();<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        }<BR>&nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        if(s=="复制(C)")<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        {<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String 
                        text = tf.getText();<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; StringSelection selection = new 
                        StringSelection(text);<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; cb.setContents(selection, null);&nbsp; 
                        &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; }<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; if(s=="粘贴(V)" )<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; Transferable contents = 
                        cb.getContents(this);<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; DataFlavor flavor = 
                        DataFlavor.stringFlavor;<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; try{<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; String text = 
                        (String)contents.getTransferData(flavor);<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if 
                        (!text.equals(null))<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; {<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        tf.setText(text);<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; else<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        tf.setText("0.0");<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; }<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; }<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
                        &nbsp; catch(UnsupportedFlavorException ef)<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; }<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; catch(IOException ex)<BR>&nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<BR>&nbsp; &nbsp; 
                        &nbsp; &nbsp; &nbsp; &nbsp; }<BR>&nbsp; &nbsp; &nbsp; 
                        &nbsp; }<BR>&nbsp; &nbsp; }<BR>&nbsp; &nbsp; <BR>&nbsp; 
                        &nbsp; public static void main(String args[])<BR>&nbsp; 
                        &nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; Computer c = new 
                        Computer();<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
                        c.run();<BR>&nbsp; &nbsp; 
                        }<BR>}<BR><BR><BR></I></I></I></I></I></I></I></I></I></I></I></I></I></I></I></I></I></I></I></I></I></I></I></I></TD></TR>
                    <TR>
                      <TD vAlign=bottom><BR></TD></TR></TBODY></TABLE></TD></TR>
              <TR class=tBody1>
                <TD width="20%">IP:<SPAN style="FONT-SIZE: 8pt">隐藏</SPAN></TD>
                <FORM action=./index.php method=post><INPUT name=mods 
                type=hidden value=moderate> <INPUT name=action type=hidden 
                value=addGrade> <INPUT name=forumid type=hidden value=11> <INPUT 
                name=postid type=hidden value=47> <INPUT name=topicid 
                type=hidden value=1> 
                <TD align=right><A 
                  href="http://www.hiyi.com.cn/bbs/index.php?mods=modetopic&amp;action=mode&amp;forumid=11&amp;postid=47&amp;topicid=1"><IMG 
                  align=left alt=编辑 
                  src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/read_edit.gif"></A> 
                  <A 
                  href="http://www.hiyi.com.cn/bbs/index.php?mods=modetopic&amp;action=del&amp;forumid=11&amp;postid=47&amp;topicid=1"><IMG 
                  align=left alt=删除 
                  src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/read_delete.gif"></A> 
                  发表:<FONT style="FONT-SIZE: 8pt">2005-06-14 
                  21:03:51</FONT>&nbsp;&nbsp; <B><FONT color=red>1</FONT></B> 
                  F&nbsp;&nbsp; <SELECT name=rating> <OPTION selected 
                    value=0>评分</OPTION> <OPTION value=5>+5</OPTION> <OPTION 
                    value=4>+4</OPTION> <OPTION value=3>+3</OPTION> <OPTION 
                    value=2>+2</OPTION> <OPTION value=1>+1</OPTION> <OPTION 
                    value=-1>-1</OPTION> <OPTION value=-2>-2</OPTION> <OPTION 
                    value=-3>-3</OPTION> <OPTION value=-4>-4</OPTION> <OPTION 
                    value=-5>-5</OPTION></SELECT> <INPUT name=submit type=submit value="评 分"> 
              </TD></FORM></TR></TBODY></TABLE>
            <TABLE cellPadding=4 cellSpacing=1 class=tInner>
              <TBODY>
              <TR class=tCate>
                <TD colSpan=3>
                  <P align=center> </P></TD></TR>
              <TR class=tHead>
                <TD align=right colSpan=2><A 
                  href="http://www.hiyi.com.cn/bbs/index.php?mods=post&amp;action=showReply&amp;forumid=11&amp;postid=47&amp;topicid=2"><IMG 
                  alt=引用 
                  src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/read_quote.gif"></A> 
                  <A 
                  href="http://www.hiyi.com.cn/bbs/index.php?mods=member&amp;action=info&amp;id=834" 
                  target=_blank><IMG alt="查看 孤魂野鬼 的个人资料" 
                  src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/person_info.gif"></A> 
                  <A 
                  href="http://www.hiyi.com.cn/bbs/index.php?mods=usermgs&amp;action=sentmgs_htm&amp;mgsSentTo=孤魂野鬼" 
                  target=_blank><IMG alt="给 孤魂野鬼 发送消息" 
                  src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/message.gif"></A> 
                </TD></TR>
              <TR class=tBody1>
                <TD vAlign=top width="20%">
                  <TABLE cellPadding=2 cellSpacing=0 width="100%">
                    <TBODY>
                    <TR>
                      <TD vAlign=top width="100%">
                        <P align=left><BR><B><A 
                        href="http://www.hiyi.com.cn/bbs/index.php?mods=member&amp;action=info&amp;id=834" 
                        target=_blank>孤魂野鬼</A></B><BR><IMG 
                        src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/pips2.gif"><BR><IMG 
                        src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/no_portait.gif"></P></TD></TR>
                    <TR>
                      <TD>等级:侠客</TD></TR>
                    <TR>
                      <TD>发帖:13</TD></TR>
                    <TR>
                      <TD>注册:<FONT 
                    style="FONT-SIZE: 8pt">2005-06-14</FONT></TD></TR>
                    <TR>
                      <TD>金钱:266</TD></TR>
                    <TR>
                      <TD>状态:<IMG alt=查看在线状态 
                        src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/offline.gif"></TD></TR></TBODY></TABLE></TD>
                <TD height="100%" vAlign=top width="80%">
                  <TABLE align=center cellSpacing=0 height="100%" 
                  style="TABLE-LAYOUT: fixed; word-wrap: break-word" 
width="98%">
                    <TBODY>
                    <TR>
                      <TD vAlign=top><IMG 
                        src="绿营阵线 - 【原创】我自己写的JAVA程序__计算器(普通型) - 我们的安全专家!.files/1.gif">&nbsp;<B>Re:【原创】我自己写的JAVA程序__计算器(普通型)</B><BR><BR>AboutDialog.java&nbsp; 
                        &nbsp; &nbsp; &nbsp; 关于计算器程序<BR><BR>import 
                        java.io.*;<BR>import java.awt.*;<BR>import 
                        java.awt.event.*;<BR><BR>public class AboutDialog 
                        extends Dialog implements ActionListener{<BR>&nbsp; 
                        &nbsp; <BR>&nbsp; &nbsp; private Label l;<BR>&nbsp; 
                        &nbsp; private Button b;<BR>&nbsp; &nbsp; private 
                        TextArea ta;<BR>&nbsp; &nbsp; private Panel 
                        p1;<BR>&nbsp; &nbsp; private Panel p2;<BR>&nbsp; &nbsp; 
                        private Panel p3;<BR>&nbsp; &nbsp; private Canvas c1, 
                        c2, c3, c4;<BR>&nbsp; &nbsp; private String filename = 
                        "xxx.txt";<BR>&nbsp; &nbsp; private String title = 
                        "关于计算器";<BR>&nbsp; &nbsp; private String content = 
                        "";<BR>&nbsp; &nbsp; <BR>&nbsp; &nbsp; public 
                        AboutDialog(Frame f){<BR>&nbsp; &nbsp; &nbsp; &nbsp; 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -