Java³õʼ»¯Ë³Ðò
ÎÒÃÇ´ó¼Ò¶¼ÖªµÀ£¬¶ÔÓÚ¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é¡¢±äÁ¿¡¢³õʼ»¯¿é¡¢¹¹ÔìÆ÷£¬ËüÃǵijõʼ»¯Ë³ÐòÒÀ´ÎÊÇ£¨¾²Ì¬±äÁ¿¡¢¾²Ì¬³õʼ»¯¿é£©>£¨±äÁ¿¡¢³õʼ»¯¿é£©>¹¹ÔìÆ÷¡£ÎÒÃÇÒ²¿ÉÒÔͨ¹ýÏÂÃæµÄ²âÊÔ´úÂëÀ´ÑéÖ¤ÕâÒ»µã
public
class
InitialOrderTest {
// ¾²Ì¬±äÁ¿
public
static
String staticField = "¾²Ì¬±äÁ¿"
;
// ±äÁ¿
public
String field = "±äÁ¿"
;
// ¾²Ì¬³õʼ»¯¿é
static
{
System.out.println(staticField);
System.out.println("¾²Ì¬³õʼ»¯¿é"
);
}
// ³õʼ»¯¿é
{
System.out.println(field);
System.out.println(
"³õʼ»¯¿é"
);
}
// ¹¹ÔìÆ÷
public
InitialOrderTest() {
System.out.println(
"¹¹ÔìÆ÷"
);
}
public
static
void
main(String[] args) {
new
InitialOrderTest();
}
}
ÔËÐÐÒÔÉÏ´úÂ룬ÎÒÃÇ»áµÃµ½ÈçϵÄÊä³ö½á¹û£º
¾²Ì¬±äÁ¿
¾²Ì¬³õʼ»¯¿é
±äÁ¿
³õʼ»¯¿é
¹¹Ôì
Ïà¹ØÎĵµ£º
ÏÈÀ´Á˽âÒ»ÏÂÁ´±íģʽµÄÔÀí£º
Ê×ÏÈдһ¸öJavaBean£¬ÄÚÈÝÊÇÒªÌí¼ÓµÄÔªËغ͸ÃÔªËصĽڵ㡣
public class NodeBean implements Serializable
{
private Object data; //ÔªËر¾Éí
private NodeBean next; //ÏÂÒ»¸ö½Úµã
&n ......
½ñÌìѧϰÁËapplet²¼¾ÖÎÊÌ⣺
°´Å¥¡¢±êÇ©ÊÇÔõÑù¼ÓÈëµ½applet³ÌÐò(ÈÝÆ÷)µ±ÖÐÈ¥µÄÄØ£¿
ÐèÒªÓõ½²¼¾ÖÈÝÆ÷¹ÜÀíÆ÷(LayoutManager)£ºËüÓÃÓÚÐÖúÈÝÆ÷È·¶¨¼ÓÈëµÄ×é¼þ(°´Å¥µÈ)Ó¦¸Ã·ÅÖõÄλÖÃ
awtÌṩÁË4Öг£ÓõIJ¼¾ÖÈÝÆ÷¹ÜÀíÆ÷
>>FlowLayout
>>BorderLayout
>>GridLayout
>>CardLayout
appletĬÈÏÊ ......
/*×÷ÓãºÓû§ÊäÈë×Ô¼ºµÄÃû×Ö£¬ÏÔʾһ¾äÎʺòÓï¡£
ʱ¼ä£º2010Äê4ÔÂ20ÈÕ¡£
×÷Õߣºenfang.
*/
import java.io.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class KeyboardReader¡¡//×÷Ó㺴ӼüÅ̶ÁÈëÊý¾Ý
{
¡¡¡¡private BufferedReader reader;
¡¡¡¡& ......
// ÕûÊýµ½×Ö½ÚÊý×éת»»
public static byte[] int2bytes(int n) {
byte[] ab = new byte[4];
ab[0] = (byte) (0xff & n);
ab[1] = (byte) ((0xff00 & n) >> 8);
ab[2] = (byte) ((0xff0000 & n) >> 16);
ab[3] = (byte) ((0xff000000 & n) >> 24);
return ab ......
»ùÓÚJavaµÄmp3²¥·ÅÆ÷Ô´´úÂë
(1 folders, 2 files, 1.38 KB, 962.53 KB in total.)
Ô´Âë
(1 folders, 2 files, 1.38 KB, 961.15 KB in total.)
JavaдµÄÒ»¸öm ......