presented by lee zenke 2015 java programming pt. 2

8
Presented by Lee Zenke 2015 Java Programming PT. 2

Upload: antonia-hall

Post on 25-Dec-2015

216 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Presented by Lee Zenke 2015 Java Programming PT. 2

Presented byLee Zenke

2015 Java Programming PT. 2

Page 2: Presented by Lee Zenke 2015 Java Programming PT. 2

• Lesson 1: Understanding the simple robot template▫Here I will explain the pre-created classes in the simple robot template

• Lesson 2: If, Else, and Else if▫Understanding how if statements are used and there syntax

• Lesson 3: Loops▫Here we will learn for loops, while loops, and do while loops

Training Outline

Page 3: Presented by Lee Zenke 2015 Java Programming PT. 2

• Autonomous method▫ Called in autonomous mode

• operatorControl method▫ Called in Tel-op mode

• Test method▫ Called in test mode

Lesson 1: Understanding the Simple Robot Template

Page 4: Presented by Lee Zenke 2015 Java Programming PT. 2

•Basic building block of any program•Can be nested to create logical chains

Lesson 2: If, Else, and Else If

Page 5: Presented by Lee Zenke 2015 Java Programming PT. 2

•The Most common form of a loop used•Allow controlled loop counts•Self contained incrementing counter

Lesson 3: For Loops

Page 6: Presented by Lee Zenke 2015 Java Programming PT. 2

•Simpler form of Loops•A pitfall is that they stick the code

Lesson 3: While Loops

Page 7: Presented by Lee Zenke 2015 Java Programming PT. 2

•Exactly the same as while loops•Perform one iteration of code block whether true or not

Lesson 3: Do While Loops

Page 8: Presented by Lee Zenke 2015 Java Programming PT. 2

Any Questions or thoughts?•https://www.udemy.com/java-tutorial learn java from the beginning•http://wpilib.screenstepslive.com/s/3120/m/7885 Useful info

provided by FIRST

Open Discussion and Common Issues