java×Ü½á µÚÎåÕÂ
µÚÎåÕ Êý×é
Êý×éʱ¶à¸öÏàͬÀàÐÍÊý¾ÝµÄ×éºÏ
Êý×éÊôÓÚÒýÓÃÀàÐÍ Êý×éÐÍÊý¾ÝΪ¶ÔÏó(object)
ÿ¸öÔªËØÏ൱ÓڸöÔÏóµÄ³ÉÔ±±äÁ¿
Êý×éµÄÔªËØ¿ÉÒÔÊÇÈκÎÊý¾ÝÀàÐÍ °üÀ¨»ù±¾ÀàÐͺÍÒýÓÃÀàÐÍ
int a[];
Mydate a[]; ÒýÓÃÀàÐÍÊý×é
javaÖÐÉùÃ÷Êý×éʱ²»ÄÜÖ¸¶¨Æ䳤¶È int a[5];·Ç·¨
javaÖÐʹÓÃnewÀ´´´½¨Êý×é¶ÔÏó
int a[]=new int[10];
¶¯Ì¬³õʼ»¯
Êý×鶨ÒåÓëΪÊý×éÔªËØ·ÖÅä¿Õ¼ä²¢¸³ÖµµÄ²Ù×÷·Ö¿ª½øÐÐ
¾²Ì¬³õʼ»¯
ÔÚ¶¨ÒåÊý×éµÄͬʱ¾ÍΪÊý×é·ÖÅä¿Õ¼ä²¢¸³Öµ
Êý×éʱÒýÓÃÀàÐÍ ËüµÄÔªËØÏ൱ÓÚÀàµÄ³ÉÔ±±äÁ¿
Êý×éϱê0 ---n-1
ÿ¸öÊý×鶼ÓÐÒ»¸öÊôÐÔlength a.length À´µ÷ÓÃ
¶àάÊý×é
int a[][]=new int[][];
¶àάÊý×é²»±ØÊǹæÔòµÄ¾ØÕóÐÎʽ
java.lang.SystemÀàµÄarraycopy()·½·¨ÌṩÊý×鸴ÖÆ
=System.arraycopy();
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
JavaÓëTSCÌõÐÎÂë´òÓ¡»ú(Ðø)
ÓÖ³öÏÖÁ½¸öÎÊÌâ:
1,sendcommandÃüÁîʹÓò¿·Ö³É¹¦£¬¿ÉÒÔÉèÖÃdirection 1,1ʹ´òÓ¡Ò³ÍêÈ«¾µÃ棬µ«ÊÇÈ´²»ÄÜʹÓÃcircle´òÓ¡³öԲȦȦ¡£
2£¬ÓÖÒ»´ÎÔÔµ½ÁËlinux-windowsÊÖÀÔÚwindows¿ª·¢Íê³Éºó£¬linux²»ÄÜʶ±ðtsclib.dll¡£ÔΣ¡
3£¬
×öjava-tsc´òÓ¡ÌõÐÎÂëÓöµ½Á˺ܶàÀ§ÄÑ£¬ÍøÉÏ×ÊÁϲ»Ò ......
import java.awt.*;
import java.awt.event.*;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import javax.swing.*;
public class ElectToo extends JFrame implements ActionListener,ItemListener
{
static ElectToo frm=new ElectToo();
static Save ......
µÚÈýÕÂ
±êʶ·û£¬¹Ø¼ü×Ö£¬Êý¾ÝÀàÐÍ
×¢ÊÍ //µ¥ÐÐ×¢ÊÍ /*¶àÐÐ×¢ÊÍ*/ /**Îĵµ»¯´¦Àí**/
javadoc source.java Îĵµ×Ô¶¯Éú³É¹¤¾ß
±äÁ¿
³ÌÐòÖÐÖ´ÐеÄÊýÖµ¿É±äµÄÊý¾Ý³ÉΪ±äÁ¿ °üÀ¨±äÁ¿ÃûºÍ±äÁ¿Öµ
javaÇø·Ö´óСд
±äÁ¿±ØÐëÏȶ¨ÒåÔÙʹÓÃ
javaÖÐΪ¸÷ÖÖ±äÁ¿·½·¨ºÍÀàµÈÆðµÄÃû×Ö½Ð×ö±êʶ·û(¾ÍÊÇÃû×Ö)
javaÖб»¸³ÓèÌض¨º¬Òå ......