³öÒ»µÀ×Ô¼ºÅ¼È»Ïë³öÀ´µÄJAVAÌâ ÑÓÉì¶þ
ÒÔÏ´úÂëÄÜ·ñ±àÒëͨ¹ý£¬Èç¹û²»ÄÜ£¬Çë˵Ã÷ÀíÓÉ£¬Èç¹ûÄÜ£¬Çë˵Ã÷½á¹û¡£
public class a {
{
System.out.println("AAA");
}
a() {
System.out.println("BBB");
}
{
System.out.println("CCC");
}
class aa extends a {
{
new a();
System.out.println("DDD");
}
aa aa() {
return new aa();
}
aa() {
super();
System.out.println("FFF");
}
void a() {
new a();
System.out.println("GGG");
}
}
a(a a) {
System.out.println("HHH");
}
aa aa(){
System.out.println("III");
aa aa = new aa();
return aa;
}
static {
System.out.println("JJJ");
}
public static void main(String[] args) {
System.out.println("KKK");
new a(new a()).aa().aa().a();
System.out.println("LLL");
}
}
Ïà¹ØÎĵµ£º
µÚÒ»½Ú Êý¾ÝÁ÷µÄ»ù±¾¸ÅÄî
Àí½âÊý¾ÝÁ÷
Á÷Ò»°ã·ÖΪÊäÈëÁ÷£¨Input Stream£©ºÍÊä³öÁ÷£¨Output Stream£©Á½À࣬µ«ÕâÖÖ»®·Ö²¢²»ÊǾø¶ÔµÄ¡£±ÈÈçÒ»¸öÎļþ£¬µ±ÏòÆäÖÐдÊý¾Ýʱ£¬Ëü¾ÍÊÇÒ»¸öÊä³öÁ÷£»µ±´ÓÆäÖжÁÈ¡Êý¾Ýʱ£¬Ëü¾ÍÊÇÒ»¸öÊäÈëÁ÷¡£µ±È»£¬¼üÅÌÖ»ÊÇÒ»¸öÊýÈËÁ÷£¬¶øÆÁÄ»ÔòÖ»ÊÇÒ»¸öÊä³öÁ÷¡ ......
ÔÚ±àÒëandroid code ³öÏÖ°æ±¾²»¶ÔµÄÎÊÌ⣺
ÃèÊöÈçÏ£º
You are attempting to build with the incorrect version
of java.
Your version is: java version "1.6.0_17".
The correct version is: 1.5.
Please follow the machine setup instructions at
http://source.android.com/download
ÍøÉÏÓÐÈËÌṩ½â¾ö·½·¨ÈçÏ ......
public class Test {
public static void main(String args[]) {
int i;
int j;
for (i = 1; i <= 9; i++) {
for (j = 1; j <= i; j++) {
if (j * i <= 9)
System.out.print(j ......
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import sun.net.TelnetOutputStream;
import sun.net.TelnetInputStream;
import sun.net.ftp.FtpClient;
public class download ...{
& ......
1¡¢ÀàÐÍÄ£°å Class£º
ÎïÒÔÀà¾Û£º
ÎÒÃÇ¿ÉÒÔÓÃclass Person{ } class Animal{ }À´ÃèÊöÒ»ÀàÈË»òÒ»ÀදÎ
ÄÇôÔÙÏëһϣ¬ÎÒÃÇÊDz»ÊÇ¿ÉÒÔÓÃclass Class{ } À´³éÏóÃèÊöÀàÄØ£¿
´ð°¸Ê±¿ÉÒԵģ¬Õâ¾ÍÊÇjdkÖÐµÄ Class ÀࣨÀàÐ ......