底下怎么吵吵的厉害啊???作为一个小白,说一句,概念都是基础的,简单的,不一会就可以理解的。可是,你要用,要多写才能摆脱听得到而不会写的毛病。我会轻易告诉你就这java一二季的视频,写了超过两百道题吗???从小老师就说,要多练习,怎么到现在还是有人不明白。不知道有个成语叫:熟能生巧 吗???
2016-12-01
public class HelloWorld{
static int score1=86;
static int score2=92;
//在静态方法中使用非静态变量
public static int sum(){
int sum=score1+score2;
return sum;
}
}
int allScore= HelloWorld.sum();
static int score1=86;
static int score2=92;
//在静态方法中使用非静态变量
public static int sum(){
int sum=score1+score2;
return sum;
}
}
int allScore= HelloWorld.sum();
2016-12-01
首先用HelloWorld hello = new HelloWorld();创建出一个 hello对象。 hello对象跟Inner内部类同级,然后在用相同的办法在new出一个Inner内部类的对象
2016-11-30
public class HelloWorld {
public static void main(String[] args) {
System.out.println("总分:178");
}
}
这都能过。醉了。
public static void main(String[] args) {
System.out.println("总分:178");
}
}
这都能过。醉了。
2016-11-30