BFOIT - Introduction to Computer Programming
Background
jLogo Programming
- Commanding a Turtle
- Pseudocode
- Adding New Commands
- Iteration & Animation
- Hierarchical Structure
- Procedure Inputs
- Operators & Expressions
- 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
Updates
- December 13, 2008
- January 6, 2012
- March 15, 2013
- January 20, 2014
- February 13, 2014
- July 29, 2014
- January 18, 2016
- January 29, 2016
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.
As an example, in the expression ( cents + 100 * dollars ) multiplication will be executed first in an expression since its precedence number is 12, larger 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 |