Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

java Êó±ê»­Ïß

Line.javaÎļþ-------Çý¶¯Àà
import javax.swing.JFrame;
public class Line
{
   public static void main(String[] arg)
   {
       JFrame frame=new JFrame("Draw lines");
       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       Linepanel pane=new Linepanel();
       frame.getContentPane().add(pane);
       frame.pack();
       frame.setVisible(true);
   }
}
 
Linepanel.javaÎļþ
 
 
 
 
import java.util.ArrayList;
import javax.swing.*;
import java.awt.*;
import java.awt.Point;
import java.awt.event.*;
public class Linepanel extends JPanel
{
       private Point point1=null,point2=null;
       private ArrayList<Point> pointlist;
       public Linepanel()
      {
            pointlist=new ArrayList<Point>();
            Linelistener listener=new Linelistener();
            addMouseListener(listener);
            addMouseMotionListener(listener);
            setBackground(Color.black);
            setPreferredSize(new Dimension(400,200));
       }
       public void paintComponent(Graphics page)
      {
            super.paintComponent(page);
          


Ïà¹ØÎĵµ£º

ÔÚJavaÖÐʵÏÖ¸¡µãÊýµÄ¾«È·¼ÆËã

±êÌâ     ÔÚJavaÖÐʵÏÖ¸¡µãÊýµÄ¾«È·¼ÆËã    AYellow£¨Ô­×÷£© Ð޸Ġ  
¹Ø¼ü×Ö     Java ¸¡µãÊý ¾«È·¼ÆËã  
ÎÊÌâµÄÌá³ö£º
Èç¹ûÎÒÃDZàÒëÔËÐÐÏÂÃæÕâ¸ö³ÌÐò»á¿´µ½Ê²Ã´£¿
public class Test{
    public static void mai ......

javaÖÐ×Ö·û´® MD5ÃÜÂëµÄ¼ÓÃÜÓëÑéÖ¤

Õª×Ô£ºjava JDK ʵÀý±¦µä
        MD5¼´Message-Digest Algorithm 5£¨ÐÅÏ¢-ÕªÒªËã·¨ 5£©£¬ÓÃÓÚÈ·±£ÐÅÏ¢´«ÊäÍêÕûÒ»Ö¡£ÊǼÆËã»ú¹ã·ºÊ¹ÓõÄÔÓ´ÕËã·¨Ö®Ò»£¨ÓÖÒëÕªÒªËã·¨¡¢¹þÏ£Ëã·¨£©£¬Ö÷Á÷±à³ÌÓïÑÔÆÕ±éÒÑÓÐMD5ʵÏÖ¡£
¡¡¡¡ ½«Êý¾Ý£¨È纺×Ö£©ÔËËãΪÁíÒ»¹Ì¶¨³¤¶ÈÖµÊÇÔÓ´ÕËã·¨µÄ»ù´¡Ô­À ......

javaÖÐÈÕÆÚ¡¢ÈÕÆÚ¸ñʽ¡¢ÈÕÆÚ¼ÆËãѧϰ±Ê¼Ç

2. Calendar ¶ÔÏóµÄÈÝ´íÐÔ£¬Lenient ÉèÖà ÎÒÃÇÖªµÀÌض¨µÄÔ·ÝÓв»Í¬µÄÈÕÆÚ£¬µ±Ò»¸öÓû§¸ø³ö´íÎóµÄÈÕÆÚʱ£¬Calendar ÈçºÎ´¦ÀíµÄÄØ£¿ import java.io.*;
import java.util.*; public class WhatIsCalendar
{
    public static void main(String[] args) throws Exception{
   ......

ÉîÈë½âÎöJavaµÄÐÂÌØÐÔassertion

 
ÎÒÃǾ­³£ÏÂÔØ¿ªÔ´ÏîÄ¿µÄÔ´ÂëÔÚ±¾µØ±àÒë,ÊDz»ÊǾ­³£±»Ò»¾ä"assert expression"¸ø¸ãµÃ±àÒë²»¹ýÈ¥£¬¾­³£ÊÇÔÚÀÏ°æ±¾µÄjdk±àÒëÆ÷ÏÂû°ì·¨£¬ÏÂÃæ¾ÍÏò´ó¼ÒÍƼöһƪÉîÈë·ÖÎöjava assertionµÄÎÄÕ¡£
Ò»¡¢assertionµÄÓï·¨ºÍÓïÒå
J2SE 1.4ÔÚÓïÑÔÉÏÌṩÁËÒ»¸öÐÂÌØÐÔ£¬¾ÍÊÇassertion(¶ÏÑÔ)¹¦ÄÜ£¬ËüÊǸð汾ÔÚJavaÓïÑÔ·½Ãæ×î´ ......

¼ÓÔØ¡¢Á´½ÓºÍ³õʼ»¯£¨java¸ß¼¶±à³Ì1.2.5£©


JVM£º¼ÓÔØ¡¢Á´½ÓºÍ³õʼ»¯
JVMÒª½âÊÍJava×Ö½ÚÂ룬¾Í±ØÐë¶ÔËùÐèµÄÀàºÍ½Ó¿ÚÖ´ÐÐÈçÏÂ3²½²Ù×÷£º
(1) ¼ÓÔØ£ºJVMÔÚ¼ÓÔØÀàʱ£¬»á²éÕÒ¸ÃÀà»ò¸Ã½Ó¿ÚµÄ¶þ½øÖƱíʾ£¬²¢¸ù¾ÝÕÒµ½µÄ¶þ½øÖƱíʾ(ͨ³£ÊÇÓÉJava±àÒëÆ÷´´½¨µÄÀàÎļþ)´´½¨Ò»¸öClass¶ÔÏ󡣸ÃClass¶ÔÏóÖзâ×°ÁËÀà»ò½Ó¿ÚµÄÔËÐÐʱ״̬¡£
(2) Á´½Ó£ºÁ´½ÓÕâÒ»¹ý³ÌÊÇָȡµÃÒѼÓÔØµÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ