king tec
play

KING TeC Java : The Basics Avery Swank and Matthew Zwinger How To - PowerPoint PPT Presentation

KING TeC Java : The Basics Avery Swank and Matthew Zwinger How To Brew Fresh Java For Tired Team Members Pour the water in the reservoir and put the carafe on the heating plate. Measure Your Grounds: Add the desired amount of grounds to the


  1. KING TeC Java : The Basics Avery Swank and Matthew Zwinger

  2. How To Brew Fresh Java For Tired Team Members Pour the water in the reservoir and put the carafe on the heating plate. Measure Your Grounds: Add the desired amount of grounds to the filter: about 1 tablespoon per 5 to 6 fluid ounces of cold water for regular coffee, and 2 tablespoons per 5 to 6 fluid ounces for strong coffee.

  3. Agenda ● Programming team goals ● Java programming overview ● Data types ● Variables ● Statements ● Loops ● Classes

  4. Goals of the programming department ● Improve efficiency ● Always be thinking of ideas ● Teamwork

  5. Planning coding ● Identify objectives ● Break projects into smaller pieces ● Variables and Structures ● Time management

  6. Good Programming Habits ● Use proper syntax ● Keep similar programming styles ● Make things easier to manage ● Don’t trip on wires ● Stick to your deadlines

  7. What is Java? Java is an object orientated programming language that was designed for the distributed environment of the internet.

  8. Java Programming Platforms ● Eclipse ○ Used for day to day coding. ○ Very versatile. ○ Industry standard. ● Android Studio ○ Used for the programming of apps. ○ Used by Prior Lake Robotics FTC teams. ● Netbeans ○ For developing desktop, mobile, and web applications. ○ Uses Java, Javascript, HTML5, PHP, C/C++, and more.

  9. Classes A class is a collection of related properties and behaviors, A class contains fields and methods (We will talk about these later) to describe the behavior of an object

  10. Basic Layout - Hello World ← Class ← Main Method Prints “Hello World” to the console.

  11. Comments ← Single Line ← Multi-line

  12. Variables declaring initializing

  13. Primitive data types int - an integer or whole Primitive data is data type number provided by your program as 12 , 2169 , 1234 simple building blocks. double - a decimal 2.22 , .25 , 1.1 boolean true or false char or character - holds a single letter or integers ‘A’ , ‘b’ , 2 , 45

  14. Non-Primitive data types Non-primitive data types are not defined by the programming language

  15. Concatenation To attach strings and variables together with the plus symbol

  16. Boolean Expressions Strings Boolean expression is a ints , doubles , statement that compares all booleans , and chars data typed and returns a true or false. Ex. if(3 > 2) it will return true

  17. If and If-else statements ← boolean expression

  18. If and If-else statements Output to Console

  19. Else-if ladder Output to Console

  20. Switch-cases Output to Console

  21. Loops All loops in java require three things… ● An initialized value ● An increment ● And a stopping value

  22. Increments and Decrements Increase Decrease by 1 by 1

  23. Loops - for Output to Console

  24. Loops - do Output to Console

  25. Loops - While Output to Console

  26. Scanner Class ← Import ← imports! Declares the class ‘Scanner’ ← Strings

  27. Scanner Class Output to Console

  28. Math Class |a| a^b a^(1/2)

  29. Math Class

  30. Methods 1 3 ← Method

  31. Methods

  32. Questions?

  33. Thanks For Attending! All presentations will be available soon on www.kingtec2169.com

Recommend


More recommend