This document provides an overview and introduction to Java programming concepts including syntax, loops, conditionals, classes, and methods. It discusses writing simple Java code examples like declaring variables, if/else statements, while loops, arrays, trying/catch blocks, and calling methods. The document also lists Java coding conventions like semicolons ending statements and curly braces defining code blocks. It mentions writing a class with a main method and coding a sample "Monday Morning at Bob's" application. Finally, it provides a reference to a Head First Java book for more information.
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
OpenThink Labs Training : Diving into Java, Breaking the Surface
1. #1
Day #1
Breaking the Surface
A Quick Dip
Wildan Maulana
wildan.m@openthinklabs.com
http://training.openthinklabs.com/
2. Come on, the water's
great! We'll dive right in and
write some code, then compile and
run it. We're talking syntax, looping
and branching, and a look at what
makes Java so cool. You'll be
coding in no time.
13. Bullet Points
● Statements end in a semicolon ;
● Code blocks are defined by a pair of curly braces { }
● Declare an int variable with a name and a type: int x;
● The assignment operator Is one equals sign =
● The equals operator uses two equals signs ==
● A while loop runs everything within its block (defined by curly
braces) as long as the conditional test Is true.
● If the conditional test is false, the while loop code block won't run,
and execution will move down to the code Immediately after the
loop block.
● Put a boolean test Inside parentheses:
while (x = 4) ( }