最简单的Java
/Hello.java
public class Hello{
public static void main (String args[]){
System.out.println("你好,很高兴学习java");
A a= new A( );
a.fA( );
}
}
class A{
void fA( ){
System.out.println("We are students");
}
}
最简单的Java
/Hello.java
public class Hello{
public static void main (String args[]){
System.out.println("你好,很高兴学习java");
A a= new A( );
a.fA( );
}
}
class A{
void fA( ){
System.out.println("We are students");
}
}