³öÒ»µÀ×Ô¼ºÅ¼È»Ïë³öÀ´µÄ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");
}
}
Ïà¹ØÎĵµ£º
×î½ü¿ªÊ¼ÔÚ¿´java£¬¶ÔAppletÕâ½Ú±È½Ï¸ÐÐËȤ£¬¸ÄÁ˸ÄÊéÉϵĴúÂ룬Ȩµ±Áô¸öÓ¡¼Ç
import java.awt.*;
import java.applet.*;
public class HelloApplet extends Applet
{
Font f1 = new Font("Times New Roman", Font.PLAIN, 12);
Font f2 = new Font("ËÎÌå", Font.BOLD, 24);
Font f3 = new Font("ºÚÌå", Fon ......
ÔÚ±àÒë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 ......
javaµ÷ÓÃÍⲿ³ÌÐò ±ØÉ± ·¾¶¿Õ¸ñûÓÐÎÊÌâ
Runtime rt = Runtime.getRuntime();
srcFile.getName();
try {
String cmd[]={"cmd","/c",srcFile.getAbsolutePath()};
rt.exec(cmd);
} catch (IOException e1) {
// TODO Auto-genera ......