´ÓµÚÒ»²¿¿ªÊ¼£¬×°javaºÍAdroid sdk
Ê×ÏÈ£¬¶ÔÓÚÎÒÄØ£¬ÊÇ´ÓÊÂ.net CFµÄ¹¤×÷µÄ£¬µ«×Ô´ÓײÉÏÁËhtc heroºó£¬ÎÒ£¬ÉîÉîµÄÃÔÁË£¬µ«ÔÚAndroidÏ¿ª·¢£¬»ù±¾ÊÇÓÃJava¿ª·¢µÄ£¬ºÜÉÙÓÐÓÃcºÍc++£¬³ý·Ç×öµ×²ãÄÇЩ֮ÀàµÄ¡£¶øÎÒ£¬×ÔÓдóѧ¿ÎÌÃÉÏѧÁËÄÄһѧÆÚµÄjava£¬ºÍ×öÏÂСÁ·Ï°£¬»ù±¾ÉÏ£¬¾ÍûÓж¯¹ýjavaÁË£¬µ«´Ó´Ë¿ÌÆð£¬ÎÒҪѧjava£¬ÁýͳµÄ˵ÊÇ˵ѧjava¡£ÄĶÔÓÚÈç´Ë²ËÄñµÄÎÒ£¬µ±È»ÊÇÒªÉÏÍøËÑË÷×ÊÁÏÀ´Ñ§Ï°Ñ§Ï°¡£
ÕâƪÎÄÕ£¬¾ÍÊÇÎÒÕÒµÄ×ÊÁϵÄÒ»¸ö×ܺͣ¬´Ó°²×°javaµÄµ½°²×°sdkµÄ¡£µ«»ù±¾ÉÏÊÇÍøÉϵÄͼ£¬ÒòΪ£¬ÎÒ×°µÄʱºò£¬Ì«ÐË·ÜÁË£¬ÒÔÖÂûÓÐÏëµ½½Øͼ£¬µ«ÎÒ¶¼°²×°³É¹¦ÁË£¬ÄľÍÊÇ˵£¬Ã»ÎÊÌâµÄ£¬ÒòΪÎÒÕâô²ËµÄÈ˶¼ÄÜ×°£¬ºÎ¿öÄã¡£
ºÃÁË£¬·Ï»°ÉÙ˵ÁË¡£ÏÂÃæÏÈ˵װJAVAµÄ¡£ÎÒÏÂÔصÄÈí¼þ¶¼Ö»Õë¶ÔwindowsµÄËùÒÔ´ó¼Ò¼ûÁ¼ûÁ¡£
1.Ê×ÏÈÒªÏÂÔØEclipse¡£µØÖ·ÊÇhttp://www.eclipse.org/downloads/¡£ÎÒÃÇÏÂÔصÄÊÇEclipse IDE for Java Developers (92 MB)
2.È»ºóÏÂÔØAndroid Sdk 2.0 ÏÂÔصØÖ·ÄØ£¬¾Íµ½ÏÂÔؾͿÉÒÔ¡£Ö±½ÓÏÂÔØ¡£
3.Èç¹û»úÆ÷ÉÏûÓа²×°JREµÄ»°£¬»¹ÒªÈ¥ÏÂÔØÒ»¸öJRE£¬ÏÂÔصØÖ·ÊÇhttp://java.sun.com/javase/downloads/index.jsp¡£ÎÒÃÇÏÂÔصÄÊÇJRE 6 Update 13£¬Òª¿´Çå³þ£¬ÊÇÓÐÒ»¸öJDK ,Ò»¸öJRE¡££¨ÏÂÔØÄØ£¬Òª×¢²á¸öÕ˺ŲÅÄÜÏÂÔصģ©
°²×°µÄʱºò£¬ÏÈ°²×°JREµÄ£¬ÔÚ°²×°eclipse£¬ÔÚ°²×°android sdk2.0£¬Èç¹ûûÓÐ×°JRE£¬¾Í×°²»ÁËandroid sdk2.0µÄÁË£¬ÄãµçÄÔÊDz»ÊÇÎÒ²»ÖªµÀ£¬ÆðÂ룬ÎÒµÄÊÇÕâÑù¡£
½ÓÏÂÀ´£¬Èí¼þ¶¼×¼±¸ºÃÁË£¬¾Í¿ªÊ¼×°ÁË
Ê×ÏÈÒª°²×°µÄÊÇJRE£¬°´ÕÕÌáʾһ·Next¾ÍºÃÁË£¬ÕâÀïÎҾͲ»¶à˵ÁË¡£
ÏÖÔÚ°²×°ºÍÅäÖÃEclipse£¬½âѹºó£¬´ò¿ªeclipse.exe»á³öÏÖÅäÖù¤×÷¿Õ¼äµÄ´°¿Ú£º
£¨ÕâÀïÖ÷Òª¾ÍÊÇ°²×°Android µÄ²å¼þµ½EcliseÉÏ£©
Ñ¡ÔñÄã×Ô¼ºÏëÒªµÄ¹¤×÷¿Õ¼äµØÖ·£¬È»ºóµãOK¡£
½ÓÏÂÀ´ÅäÖÃeclipse£¬°²×°Android tools£¬µãHelp| insert new soft,
µã»÷add
ÔÚlocationÉÏÊäÈ룺https://dl-ssl.google.com/android/eclipse/
µ«×î½ü£¬¾ÍÎÒ°²×°µÄʱºò£¬·¢ÏÖ´ò¿ª²»ÁË£¬Õâ¸öʱºò£¬ÎÒÃÇ¿ÉÒÔµ½ÒÔϵØÖ·ÏÂÔظö²å¼þ
http://www.153.xdowns.com/uploadFile/2009-11/ADT-0.9.4.zip
£¨·ÅÐÄ£¬ÎÒÒ²ÊÇÓÃÕâ¸öµÄ£©
Èç¹ûÊÇ´Ó±¾µØÏÂÔصģ¬ÄÇô¾Í½âѹ£¬È»ºóÔٸղŵÄadd´°¿Ú£¬Ñ¡ÔñLocal°´Å¥£¬¶Ô׎âѹºÃµÄ¸úĿ¼¡£
È»ºó°²×°Android Development Tools£¬µã»÷Instal
Ïà¹ØÎĵµ£º
Java·ÃÎÊȨÏÞÒ»¹²ÓÐËÄÖÖ£¬ËûÃÇÖ®¼äµÄ·ÃÎÊȨÏޱȽÏͨ¹ýÒÔÏÂÒ»×éÀý×ÓÀ´½âÊÍ
Àý×Ócode£ºModiferDemo.java
package com.glust.blog.j2se;
public class ModiferDemo{
//ËÄÖÖ·ÃÎÊȨÏ޵ıäÁ¿£¨ÊôÐÔ£©
private int a;
int b;//friendly
protected int c;
public int d;
......
JAVAÅÅÐò»ã×Ü ÊÕ²Ø
package com.softeem.jbs.lesson4;
import java.util.Random;
/**
* ÅÅÐò²âÊÔÀà
*
* ÅÅÐòËã·¨µÄ·ÖÀàÈçÏ£º
* 1.²åÈëÅÅÐò£¨Ö±½Ó²åÈëÅÅÐò¡¢ÕÛ°ë²åÈëÅÅÐò¡¢Ï£¶ûÅÅÐò£©£»
* 2.½»»»ÅÅÐò£¨Ã°ÅÝÅÝÅÅÐò¡¢¿ìËÙÅÅÐò£©£»
* 3.Ñ¡ÔñÅÅÐò£¨Ö±½ÓÑ¡ÔñÅÅÐò¡¢¶ÑÅÅÐò£ ......
String str = "[010101]+[010102]";
String ss = "
System.out.println(ss); // \[010101]
[ ÊÇÌØÊâ×Ö·û£¬
ÐèÒªÓ÷´Ð±¸Ü \[ ¶ÔÆä½øÐÐתÒå
\\[010101]";
String ssss = "
\\ ......