为了研究一下lumaqq(http://lumaqq.linuxsir.org),决定学习java。

首先下载j2sdk,如有兴趣再下载eclipse

下面就可以编程序了。第一个程序:

// HelloWorld.java
public class HelloWorld {
    public static void main(String args[]) {
        System.out.println("Hello World!") ;
    }
}

编译并执行:
path=%path%;D:\j2sdk1.4.2_09\bin
set classpath=.;D:\j2sdk1.4.2_09\lib\dt.jar;D:\j2sdk1.4.2_09\lib\tools.jar
javac helloworld.java
java helloworld

本文参考http://www.newsmth.net/bbsanc.php?path=%2Fgroups%2Fcomp.faq%2FJava%2Flist2%2Fforbeginner%2FM.979817151.A
一些语言上的细节
http://www.newsmth.net/bbs0an.php?path=%2Fgroups%2Fcomp.faq%2FJava%2Flist2%2Fforbeginner%2Fnotes
一个小型计算器的实现(没看明白呀)
http://www.newsmth.net/bbsanc.php?path=%2Fgroups%2Fcomp.faq%2FJava%2Fjavaprogramming%2FJavaExample%2FM.1065460825.d0

相关文章:

  • 2021-04-21
  • 2021-12-07
  • 2021-04-21
  • 2021-10-16
  • 2021-07-29
  • 2021-11-20
  • 2021-07-05
  • 2021-05-14
猜你喜欢
  • 2021-04-02
  • 2021-04-01
  • 2021-09-22
  • 2022-12-23
  • 2021-09-10
  • 2022-01-07
  • 2021-07-19
相关资源
相似解决方案