package test.ant;
public class HelloWorld
{
 public static void main(String[] args)
 {
  System.out.println("HelloWorld!");
 }
}

 

其中string需要首字母大写成String

string与String的区别是:string是数据类型;String是string的抽象类;具体可以参考:http://docs.oracle.com/javase/8/docs/api/

相关文章:

  • 2021-11-27
  • 2021-09-09
  • 2021-06-30
  • 2021-05-24
  • 2021-06-11
  • 2022-12-23
  • 2021-07-27
  • 2021-05-22
猜你喜欢
  • 2021-08-11
  • 2021-04-26
  • 2021-07-25
  • 2021-06-08
  • 2021-09-04
  • 2021-12-24
  • 2022-12-23
相关资源
相似解决方案