Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
JAVA
1. Open the link from your Zoom messeges.
2.Notice that you being assinged an animal and a color.
3. Go to the box with you assigned color.
4. Draw your Zoom neighbor!!! You got 60 sec.
- Introduction to Java and algorithms
- Input and Output
- Variables
• Declaration and Initialization
- Data types
- If/else if/else
- Loops
• While, for
• Nested loops
- Intro to arrays
- 2D arrays
- To not interrupt your classmates when they are participating.
- Respect everyone
- Pay attention
We have two monkeys, a and b, and the parameters aSmile and bSmile indicate if each is smiling. We are in trouble if they are both smiling or if neither of them is smiling. Return true if we are in trouble.
We have two monkeys
a
b
The parameters aSmile and bSmile indicate if each is smiling.
a
b
True
False
aSmile =
bSmile =
We are in trouble if they are both smiling or if neither of them is smiling.
False
trouble =
True
if ( aSmile && bSmile )
False
if ( && )
if ( )
True
trouble?
What do we return if we are into trouble?
return True
if ( aSmile && bSmile )
if ( && )
True
False
if ( )
False
trouble?
What do we return if we are NOT into trouble?
return False