📄 right4_1_1.htm
字号:
<html><head><title>JAVA编程语言</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" href="../../../css/text.css" type="text/css"><script language="JavaScript"><!--function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features);}//--></script></head><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" ><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"> <tr> <td valign="top"> <table width="90%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF"> <tr> <td height="244" valign="top"> <p> <span class="zhongdian"> <img src="../../../images/html/liti.gif" width="38" height="38" align="absbottom" title="例题">【例4-1】<a name="01"></a></span><span class="pt9-black"><br> <br> import java.io.*;<br> class ExceptionDemo1{<br> public static void main( String args[ ] ){<br> FileInputStream fis = new FileInputStream( "text" );<br> int b;<br> while( (b=fis.read())!=-1 ){<br> System.out.print( b );<br> }<br> fis.close( );<br> }<br> }<br> <br> <a href="right4_1_1_1.htm"><font color="#FF0000">查看编译结果</font></a><br> <br> </span><span class="zhongdian"><img src="../../../images/html/liti.gif" width="38" height="38" align="absbottom" title="例题">【例4-2】</span><span class="pt9-black"><a name="02"></a><br> <br> class ExceptionDemo2{<br> public static void main( String args[ ] ){<br> int a = 0;<br> System.out.println( 5/a );<br> }<br> }<br> <br> <a href="#02" onClick="MM_openBrWindow('tanchu1.htm','','width=300,height=200')"><font color="#FF0000">查看运行结果</font></a><br> <br> <br> <br> <br> <br> <br> <br> </span> </p> </td> </tr> </table> </td> </tr></table></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -