第一个简单的JAVA程序

来源:互联网 发布:尘埃2 windows live 编辑:程序博客网 时间:2024/06/01 18:43

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

}