BFOIT - Introduction to Computer Programming
Background
jLogo Programming
- Commanding a Turtle
- Pseudocode
- Adding New Commands
- Iteration & Animation
- Hierarchical Structure
- Procedure Inputs
- Primitive Operators
- Defining Operators
- Words & Sentences
- User Interface Events
- What If? (Predicates)
- Recursion
- Local Variables
- Global Variables
- Word/Sentence Iteration
- Mastermind Project
- Turtles As Actors
- Arrays
Java
- A Java Program
- What's a Class?
- Extending Existing Classes
- Types
- Turtle Graphics
- Control Flow
- User Interface Events
Appendices
Lastly
Java Operator Precedence
Operations always come before others. The following table lists the specific precedences of Java operators. The larger the precedence number the sooner it is evaluated (see evaluation order).
As an example, in the expression ( dollars * 100 + cents ) multiplication will be executed first in an expression since its precedence number is 12, bigger than addition's 11.
| Operator | Description | Precedence Number |
| ++, -- | post-increment, post-decrement | |
| ++, -- | pre-increment, pre-decrement | |
| ~ | bitwise complement | |
| ! | logical complement | |
| +, - | numerical signs | |
| ( typename ) | type conversions, casting | |
| *, /, % | multiplication, division,
remainder |
|
| +, - | addition, subtraction | |
| <<, >>, >>> | bit shifts | |
| <, <=, >, >= | relational | |
| ==, != | equality | |
| & | bitwise AND | |
| ^ | bitwise EXCLUSIVE OR | |
| | | bitwise INCLUSIVE OR | |
| && | conditional-and | |
| || | conditional-or | |
| ?, : | if, else expression | |
| =, +=, -=, *=, /= | assignment |