Jinhai‘s JAVA cheat sheet
Codecademy学习笔记 Part I
- int整数,范围在-2,147,483,648 and 2,147,483,647
- boolean,true或者false
- char,single character,使用单引号表示,例如char movieRating = 'A';
- 单行注释 single line comments
// I'm a single line comment!
- 多行注释 multi-line comments
/* I'm a multi-line line comment! */数学操作符 math operators
+-*/,以及取余%,例如21%5 = 1
比较操作符relational operators
- < : less than.
- <=: less than or equal to.
- >: greater than.
- >=: greater than or equal to.
- ==: equal to.
- !=: not equal to.
No comments:
Post a Comment