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

AndroidÖи÷ÖÖJAVA°üµÄ¹¦ÄÜÃèÊö


ÔÚAndroidµÄÓ¦ÓóÌÐò¿ª·¢ÖУ¬Í¨³£Ê¹ÓõÄÊÇJAVAÓïÑÔ£¬³ýÁËÐèÒªÊìϤJAVAÓïÑԵĻù´¡ÖªÊ¶Ö®Í⣬»¹ÐèÒªÁ˽âAndroidÌṩµÄÀ©Õ¹µÄJAVA¹¦ÄÜ¡£
ÔÚÒ»°ãµÄJAVAÓ¦ÓÃÖУ¬Èç¹ûÐèÓÃÒýÓûù´¡Àà¿â£¬Í¨³£ÐèҪʹÓÃÈçϵķ½Ê½£º
import
javax.swing.*;
ÒÔÉÏ´úÂë±íʾÁËÒýÓÃJAVAµÄGUI×é¼þSwing,javax.swing¼´JAVAÖеÄÒ»¸ö°ü¡£
androidÌṩһЩÀ©Õ¹µÄJAVAÀà¿â£¬Àà¿â·ÖΪÈô¸É¸ö°ü£¬Ã¿¸ö°üÖаüº¬Èô¸É¸öÀà¡£ÀýÈ磺ÔÚAndroidÖмÆËãÆ÷ÊÇÒ»¸öÏà¶Ô¼òµ¥µÄ³ÌÐò£¬ÆäÈë¿Ú³ÌÐòÎļþΪCalculator.java£¬¸ÃÎļþ°üº¬ÁËÒÔÏÂÄÚÈÝ£º
package com.android.calculator2;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.util.Config;
import android.view.Menu;
import android.view.MenuItem;
import android.view.Window;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import android.content.res.Configuration;
ÔÚAndroidÖУ¬¸÷ÖÖ°üд³Éandroid.*µÄ·½Ê½£¬ÖØÒª°üµÄÃèÊöÈçÏÂËùʾ£º
android.app £ºÌṩ¸ß²ãµÄ³ÌÐòÄ£ÐÍ¡¢Ìṩ»ù±¾µÄÔËÐл·¾³
android.content£º°üº¬¸÷ÖֵĶÔÉ豸ÉϵÄÊý¾Ý½øÐзÃÎʺͷ¢²¼µÄÀà
android.database £ºÍ¨¹ýÄÚÈÝÌṩÕßä¯ÀÀºÍ²Ù×÷Êý¾Ý¿â
android.graphics£ºµ×²ãµÄͼÐο⣬°üº¬»­²¼£¬ÑÕÉ«¹ýÂË£¬µã£¬¾ØÐΣ¬¿ÉÒÔ½«ËûÃÇÖ±½Ó»æÖƵ½ÆÁÄ»ÉÏ.
android.location £º¶¨Î»ºÍÏà¹Ø·þÎñµÄÀà
android.media £ºÌṩһЩÀà¹ÜÀí¶àÖÖÒôƵ¡¢ÊÓƵµÄýÌå½Ó¿Ú
android.net £ºÌṩ°ïÖúÍøÂç·ÃÎʵÄÀ࣬³¬¹ýͨ³£µÄjava.net.* ½Ó¿Ú
android.os£ºÌṩÁËϵͳ·þÎñ¡¢ÏûÏ¢´«Êä¡¢IPC»úÖÆ
android.opengl £ºÌṩOpenGLµÄ¹¤¾ß
android.provider£ºÌṩÀà·ÃÎÊAndroidµÄÄÚÈÝÌṩÕß
android.telephony £ºÌṩÓ벦´òµç»°Ïà¹ØµÄAPI½»»¥
android.view£ºÌṩ»ù´¡µÄÓû§½çÃæ½Ó¿Ú¿ò¼Ü
android.util£ºÉæ¼°¹¤¾ßÐԵķ½·¨£¬ÀýÈçʱ¼äÈÕÆڵIJÙ×÷
android.webkit£ºÄ¬ÈÏä¯ÀÀÆ÷²Ù×÷½Ó¿Ú
android.widget£º°üº¬¸÷ÖÖUIÔªËØ£¨´ó²¿·ÖÊǿɼûµÄ£©ÔÚÓ¦ÓóÌÐòµÄÆÁÄ»ÖÐʹÓÃ


Ïà¹ØÎĵµ£º

javaÖÐthisºÍsuperµÄÓ÷¨

thisµÄÓ÷¨ÔÚjavaÖдóÌå¿ÉÒÔ·ÖΪ3ÖÖ£º
 //1.ÆÕͨµÄÖ±½ÓÒýÓÃ
class test {
   private int x,y;
   public test(int x,int y) {
       setX(x);//Ò²¿ÉÒÔдΪthis.setX(x);ÕâÖÖÇé¿öÏÂthis¿ÉÒÔÊ¡ÂÔ.
   }
}
//2.·½·¨ÖеÄij¸öÐβÎÃûÓ뵱ǰ¶ÔÏóµÄÄ ......

Java ѧÉú¹ÜÀíϵͳ´úÂë

//³õѧJAVA  ¿ª·¢ÁËÒ»¸ö ѧÉú¹ÜÀí³ÌÐò£¬ÄóöÀ´É¹É¹£¬ÒÔ±ã´ó¼Ò²Î¿¼»òÆÀÂÛ Ö¸³ö²»×ãÖ®´¦£¡Ð»Ð» ÓÉÓÚ´Ë´¦²»ÄÜÉÏ´«ÕÕƬ£¬¹Ê·ÅÔÚÎÒµÄÏà
//²áÀïÃæ
//Õâ¸öµÇÈë½çÃæµÄ³ÌÐò£º
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
impor ......

javaͼƬˮӡ

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.font.TextAttribute;
import java.awt.image.BufferedImage;
import java.io.FileOutputStream;
import java.text.AttributedCharacterIterator;
import java.text. ......

java ´®¿ÚͨÐÅ ¶þ

Java´®¿ÚͨѶ
 
   
´®ÐÐͨѶЭÒéÓкܶàÖÖ£¬ÏñRS232£¬RS485£¬RS422£¬ÉõÖÁÏÖ½ñÁ÷ÐеÄUSBµÈ¶¼ÊÇ´®ÐÐͨѶЭÒé¡£¶ø´®ÐÐͨѶ¼¼ÊõµÄÓ¦ÓÃÎÞ´¦²»ÔÚ¡£¿ÉÄÜ´ó¼Ò¼ûµÄ×î¶à¾ÍÊǵçÄԵĴ®¿ÚÓëModemµÄͨѶ¡£¼ÇµÃÔÚPC»ú¸Õ¿ªÊ¼ÔÚÖйúÁ÷ÐÐÆðÀ´Ê±(´óÔ¼ÊÇÔÚ90Äê´úÇ°ÎåÄê)£¬ÄÇʱÉõÖÁÓÐÈËÓÃÒ»Ìõ´®ÐÐÏß½øÐÐÁ½Ì¨µçÄÔÖ®¼äµÄÊý ......

javaµÝ¹éʵÏÖººÅµËþ

/*
 * ººÅµËþ£¬´ÓµÚ1¸öÖù×Ó½èÖúµÚ2¸ùÖù×ÓÒƶ¯µ½µÚ3¸ù
 */
public class TowerOfHano {
 
    private int totle;//×ܹ²ÅÌ×ÓÊýÄ¿
    public TowerOfHano(int totle){
       this.totle=totle;
    }
  &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ