[Java in NetBeans] Lesson 00. Getting Set-up for Learning Java

Java编程基础与实践
本文详细介绍了Java编程的基础知识,包括环境搭建、NetBeans IDE使用、类文件命名规范、.java与.jar文件区别、编译流程、键盘输入处理、基本打印操作及main函数结构。适合初学者快速入门。

    这个课程的参考视频在youtube

    主要学到的知识点有:

  1. set up needs Java SE JDK, NetBeans IDE
  2. class name should be the same like .java file name.
  3. .java is java file, .jar is compiled code.
  4. "clean and build" did clean old .jar file and create a new .jar file. 
  5. For keyboard input, need to "import java.util.Scanner;" then use "Scanner input = new Scanner(System.in); " define a new Scanner input, and then use "String name = input.nextLine();" to pass the next input to "name"
  6. System.out.print(String s) will just print s and have no new line after that.
  7. System.out.println(String s) will print s and have a new line after that.
  8. System.out.printf() is similar to printf in C.  e.g.  "System.out.printf("Hello, %s! ", name);"
  9. Basic main function: "public static void main(String[] args){ }"

转载于:https://www.cnblogs.com/Johnsonxiong/p/9814898.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值