?? tsld021.htm
字號:
<HTML>
<HEAD>
<META HTTP-EQUIV="Context-Type" CONTEXT="text/html;charset=windows-1252">
<meta name="GENERATOR" content="Microsoft Internet Assistant for PowerPoint 97">
<TITLE>Using Arrays Example</TITLE>
</HEAD>
<BODY >
<H1>Using Arrays Example</H1>
<P><UL>
<BR></UL><UL>
public class InitArrays {
</UL><UL>
</UL><UL>
public static void main (String[] argv) {
</UL><UL>
int [] numArray; // declaration
</UL><UL>
numArray = new int[10]; // creation
</UL><UL>
for (int x=0; x<numArray.length; x++) {
</UL><UL>
numArray[x] = x * 2;
</UL><UL>
}
</UL><UL>
for (int x=0; x<numArray.length; x++) {
</UL><UL>
System.out.println("position " + x +
</UL><UL>
" contains: " + numArray[x] );
</UL><UL>
}
</UL><UL>
}
</UL><UL>
}</UL></P>
<P></P>
<P>
<TABLE>
<TD HEIGHT=100 WIDTH=100> <A HREF="tsld020.htm">Previous slide</A> </TD>
<TD HEIGHT=100 WIDTH=100> <A HREF="tsld022.htm">Next slide</A> </TD>
<TD HEIGHT=100 WIDTH=150> <A HREF="tsld001.htm">Back to first slide</A> </TD>
<TD HEIGHT=100 WIDTH=150> <A HREF="sld021.htm">View graphic version</A> </TD>
</TABLE>
<BR>
</P>
</Body>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -