这个指南旨在为Java开发者提供一个快速查阅的参考,包括常见语法、方法和库。
数据类型
基本数据类型:
- 整型:
int
,long
,short
,byte
- 浮点型:
float
,double
- 布尔型:
boolean
- 字符型:
char
- 整型:
引用数据类型:
- 类(Class)
- 接口(Interface)
- 数组(Array)
控制流
条件语句:
if-else
switch
循环语句:
for
while
do-while
异常处理
try-catch
finally
throw
throws
集合框架
List
Set
Map
Queue
Stack
输入输出
System.out.println()
Scanner
类- 文件操作
Java Logo
更多信息,请访问Java 官方文档。