First Java Application
01. Java Installation
02. click to see the emample
Print and format
03. System.out.print
show code...
hide code...
04. Escape sequences
show code...
hide code...
05. format() handout
06. System.out.format
show code...
hide code...
07. Advanced: System.out.format
show code...
hide code...
Variables and Calculations
08. Simple variable
show code...
hide code...
09. Display digits of 2-digit number
show code...
hide code...
10. Using Math class
show code...
hide code...
11. Random Numbers
show code...
hide code...
Input: Scanner JOptionPane
12. Scanner (integer & String)
show code...
hide code...
13. Scanner (several integers)
show code...
hide code...
14. Scanner (Double and Int)
show code...
hide code...
15. Scanner (go from numbers to Strings)
show code...
hide code...
16. JOptionPane
show code...
hide code...
If and Switch
17. If simple Demo
show code...
hide code...
18. Switch demo
show code...
hide code...
19. Boolean Expressions 1
show code...
hide code...
20. Boolean Expressions 2
show code...
hide code...
21. Nested Structures
show code...
hide code...
Loops
22. While Loop Demo
show code...
hide code...
23. For Loop Demo
show code...
hide code...
24. Simple Loops
show code...
hide code...
25. Nested For Loops
show code...
hide code...
Strings
26. Simple string example
show code...
hide code...
27. Reading files (vegetables or fruits)
show code...
hide code...
28. Pick a random word from file
show code...
hide code...
29. String game. Pick a word in method
show code...
hide code...
Arrays
31. Array declare/populate/print simple Demo
show code...
hide code...
32. click to see more Array examples (reverse, max, min, median, average, sort, populate)
Methods
33. Method example 00
show code...
hide code...
34. Method example 01
show code...
hide code...
35. Method example 02
show code...
hide code...
36. More Method Examples
click to see the emample
Object Oriented Programming
37. Intro to Objects
Intro to OO
38. Candy Eaters example
show code...
hide code...
39. UML and Encapsulation
a_19_UML and Encapsulation lesson.doc
40. Overloading toString()
a_21_Overloading lesson.doc
41. Inheritance
a_22_Inheritance.doc
42. Static non-static variables and methods
23_Static_Methods_Variables.doc
43. OOP definitions. More OO examples. Polymorphism
OOP_06_definitions_Polymorphism.doc
44. Fraction demo
show code...
hide code...
45. Array List Class
DynamicArrays_ArrayLists.doc
46. Array Lists demo
show code...
hide code...