File tree
1,235 files changed
+1357
-0
lines changed- 01.040 Running Your First Program
- src/hello
- 01.070 The Main Method
- src/application
- 01.080 Formatting and Code Blocks
- src/application
- 02.100 Integer Variables
- src/application
- 02.110 Addition
- src/application
- 02.120 Outputting Variables and Text
- src/application
- 02.130 Doubles
- src/application
- 02.140 Arithmetic
- src/application
- 02.150 Variable Assignment
- src/application
- 02.160 Calculations
- src/application
- 02.190 Converting Temperatures
- src
- 03.010 Strings
- src/application
- 03.020 Joining Strings
- src/application
- 03.030 Control Characters
- src/application
- 03.040 Outputting a Menu
- src
- 03.050 Format Specifiers
- src/application
- 03.060 Format Specifiers Example
- src/application
- 03.070 User Input
- src/application
- 04.010 While Loops
- src/application
- 04.020 Loop Conditions
- src/application
- 04.040 Increment and Decrement
- src
- 04.050 PostfixAndPrefix
- src
- 04.060 Postfix and Prefix Expressions
- src
- 04.090 More While Loops
- src
- 04.100 For loops
- src/application
- 04.110 Boolean
- src
- 04.120 Equality
- src/application
- 04.130 If
- src
- 04.140 Using If
- src/application
- 04.150 If Else
- src/application
- 04.160 If Else If
- src/application
- 04.170 More If Else If
- src/application
- 04.180 One Line If
- src/application
- 04.190 Converting If Else to Switch
- src/application
- 04.190 Switch
- src/application
- 04.200 Switch Fallthrough
- src/application
- 04.210 The String Equals Method
- src/application
- 04.220 The Final Keyword
- src/application
- 04.230 Break
- src/application
- 04.240 Checking Passwords
- src/application
- 04.250 Password Loops
- src/application
- 04.260 Do While Loops
- src/application
- 04.270 Not
- src
- 04.280 Not Equal
- src/application
- 04.290 Variable Scope
- src
- 04.300 Checking Passwords with Do While
- src/application
- 04.310 Flags
- src/application
- 04.420 Limited Attempts
- src/application
- 04.430 String Methods
- src/application
- 04.440 Case Insensitivity Exercise
- src/application
- 04.450 Case Insensitivity Exercise Solution
- src/application
- 04.460 Stream Loops
- src/application
- 05.010 Arrays
- src/application
- 05.020 Arrays of Strings
- src/application
- 05.030 Iterating Over Arrays
- src/application
- 05.040 Iterating with IntStream
- src/application
- 05.050 Primitive Arrays - A Closer Look
- src/application
- 05.060 Primitive Arrays Exercise Solution
- src/application
- 05.070 For Each Loops
- src
- application
- 05.080 Stream For Each Loops
- src/application
- 05.100 Non-Primitive Arrays
- src/application
- 05.110 Multidimensional Arrays
- src/application
- 05.120 Working With Multidimensional Arrays
- src/application
- 05.130 Multidimensional Array Exercise
- src/application
- 05.140 Multidimensional Arrays Exercise Solution
- src/application
- 05.150 Multiplication Tables
- src/application
- 06.010 Classes and Objects
- src/application
- 06.020 Instance Variables
- src/application
- 06.030 Methods
- src/application
- 06.040 Accessing Instance Variables
- src/application
- 06.050 Menu Example
- src/application
- 06.060 Menu Example Implementation
- src/application
- 06.070 Return Values
- src/application
- 06.080 Menu Returning String
- src/application
- 06.090 Method Parameters
- src/application
- 06.100 Multiple Parameters
- src/application
- 06.110 Getters and Setters
- src/application
- 06.120 This
- src/application
- 06.130 Public and Private
- src/application
- 06.140 Window Example
- src/application
- 06.160 Constructors
- src/application
- 06.170 Constructors with Parameters
- src/application
- 06.180 toString
- src/application
- 06.190 Automatically Generating Classes
- src/application
- 07.010 Hangman
- src/application
- 07.030 A RandomWord Class
- src/application
- 07.040 Random
- src
- application
- test
- 07.050 The char Type
- src
- application
- test
- 07.060 Char Arrays
- src
- application
- test
- 07.070 StringBuilder
- src
- 07.080 Using StringBuilder
- src
- application
- test
- 07.090 The Ternary Operator
- src/application
- 07.100 Using the Ternary Operator
- src
- application
- test
- 07.110 Filling in Characters
- src
- application
- test
- 07.120 Closing the Scanner
- src
- application
- test
- 07.130 Checking User Input
- src
- application
- test
- 07.140 Limited Tries
- src
- application
- test
- 08.010 Boolean And
- src/application
- 08.020 Boolean Or
- src/application
- 08.030 Complex Boolean Conditions
- src/application
- 09.010 Static and Final
- src/application
- 09.020 Static Variables
- src/application
- 09.030 Static Methods
- src/application
- 09.040 Assigning IDs
- src/application
- 09.050 Static Initialization Blocks
- src/application
- 10.010 Inheritance
- src/application
- 10.020 Overriding Methods
- src/application
- 10.030 The Override Annotation
- src/application
- 10.040 Subtype Polymorphism
- src/application
- 10.050 Casting and Runtime Errors
- src/application
- 10.060 Protected
- src
- application
- entities
- 11.010 Rock Paper Scissors
- src/application
- 11.020 A Game Object
- src
- application
- game
- 11.030 Game Objects
- src
- application
- game
- objects
- 11.040 Naming Objects
- src
- application
- game
- objects
- 11.050 Choosing Objects
- src
- application
- game
- objects
- 11.060 Comparing Objects
- src
- application
- game
- objects
- 11.070 CompareTo
- src
- application
- game
- objects
- 11.080 The Comparable Interface
- src
- application
- game
- objects
- 11.090 UserPicksAnObject
- src
- application
- game
- objects
- 11.100 WinDrawLose
- src
- application
- game
- objects
- 11.110 GameLoop
- src
- application
- game
- objects
- 11.120 Accouncing the Winner
- src
- application
- game
- objects
- 12.010 Method Overloading
- src/application
- 12.020 Default Constructors
- src/application
- 12.030 Constructor Chaining
- src/application
- 12.040 Super
- src/application
- 13.010 Hello World Swing
- src/application
- 13.020 SwingUtilities
- src
- application
- gui
- 13.030 Swing Custom Components
- src/application
- 13.040 Panels and Layouts
- src
- application
- gui
- 13.050 Toolbars
- src
- application
- gui
- 14.010 Packages
- src/com/caveofprogramming/swingtest/application
- 14.020 AccessModifiers
- src
- application
- package1
- 14.040 Main Methods
- src
- 14.050 Upcasting
- src/application
- 14.060 Downcasting
- src/application
- 14.070 Object
- src/application
- 14.080 Abstract Classes
- src/application
- 14.090 Interfaces
- src/application
- 14.091 Interface Inheritance
- src/application
- 14.092 Interface Default Methods
- src/application
- 14.093 Multiple Inheritance
- src/application
- 14.100 Abstract Class Example
- src/application
- 14.110 Interface Example
- src/application
- 14.130 An Egg Timer
- src/application
- 15.030 Button Clicks
- src
- application
- gui
- 15.040 Changing Color
- src
- application
- gui
- 15.050 Naive App Control
- src
- application
- gui
- 15.060 About References
- src/application
- 15.080 Color Button Listener
- src
- application
- gui
- 15.100 Decoupling Using Interfaces
- src
- application
- gui
- 16.010 HashCode and This
- src/application
- 16.020 Local Inner Classes
- src
- 16.030 Local Inner Classes Example
- src/application
- 16.040 Effectively Final
- src/application
- 16.050 Static Inner Classes
- src/application
- 16.060 Non-static Inner Classes
- src/application
- 16.070 Anonymous Classes
- src/application
- 16.080 Inner Class Review
- src/application
- 17.010 Handling Button Clicks With Inner Classes
- src
- application
- gui
- 17.020 Handling Button Clicks With Lambda Expressions
- src
- application
- gui
- 18.010 Enum
- src/application
- 18.020 Enum Useful Methods
- src/application
- 18.030 Enum Constructors
- src/application
- 18.040 Enum and Switch
- src/application
- 18.050 Enum Exercise
- src/application
- 18.060 Enum Exercise Solution
- src/application
- 18.070 Improving Rock Paper Scissors
- src/application
- 18.080 Implementing the Beats Method
- src/application
- 18.090 Using Beats
- src/application
- 18.100 Eliminating Unecessary Code
- src/application
- 19.010 IntroducingExceptions
- src/application
- 19.020 Try Catch
- src/application
- 19.030 Some Exception Exercises
- src/application
- 19.040 Throwing Exceptions
- src/application
- 19.050 The Call Stack
- src/application
- 19.060 Throwing Runtime Exceptions
- src/application
- 19.070 Custom Exceptions
- src/application
- exceptions
- 19.080 Handling Multiple Exceptions
- src/application
- exceptions
- 19.090 Catching Multiple Exceptions
- src/application
- exceptions
- 19.100 Exception Flow Control
- src/application
- 19.110 NullPointerException
- src/application
- 19.120 AutoCloseable
- src/application
- 19.130 Constructor Exceptions and Close
- src/application
- 19.140 HandlingConstructorAndCloseExceptions
- src/application
- 19.150 TryWithResources
- src/application
- 19.160 TryWithResourcesExample
- src/application
- 20.010 Integer Types
- src/application
- 20.020 MinimumAndMaximumValues
- src/application
- 20.030 Floating Point Types
- src/application
- 20.040 Class Equivalents of Primitive Types
- src/application
- 20.060 Widening and Narrowing Conversions
- src/application
- 20.070 Numeric Literals
- src/application
- 20.080 The Mod Operator
- src/application
- 21.005 Introducing the Game of Life
- application
- 21.010 Basic Swing App - Again
- src/application
- 21.020 Painting and Drawing
- src/application
- 21.040 Calculating Margins
- src/application
- 21.050 Drawing the Grid
- src/application
- 21.050 Numeric Class Methods
- src/application
- 21.060 Filling Cells
- src/application
- 21.070 Front End vs Back End
- src
- application
- gui
- 21.080 The Model
- src
- application
- gui
- model
- 21.090 Displaying the Model
- src
- application
- gui
- model
- 21.100 Handling Mouse Clicks
- src
- application
- gui
- model
- 21.110 Converting Mouse Coordinates
- src
- application
- gui
- model
- 21.120 Handling Key Presses
- src
- application
- gui
- model
- 21.130 Randomizing the Grid
- src
- application
- gui
- model
- 21.140 Clearing the Grid
- src
- application
- gui
- model
- 21.150 Iterating Over Cells
- src
- application
- gui
- model
- 21.160 Counting Neighbours
- src
- application
- gui
- model
- 21.170 Life and Death
- src
- application
- gui
- model
- 21.180 Implementing the Game of Life Algorithm
- src
- application
- gui
- model
- 21.190 Fixing Resize
- src
- application
- gui
- model
- 22.010 The File Class
- src/application
- 22.020 Reading and Writing Text Files
- src/application
- 22.030 File Locations
- src/application
- 22.040 Reading Text Files Line By Line
- src/application
- 22.050 Writing Text Files Line By Line
- src/application
- 22.060 Serializing Objects
- src/application
- 22.070 Deserializing Objects
- src/application
- 22.080 Transient
- src/application
- 22.090 Serial Version UIDs
- src/application
- 22.100 Serializing Multiple Objects
- src/application
- 22.110 Writing Binary Files
- src/application
- 22.120 Reading Binary Files
- src/application
- 22.130 Reading Java Class Files
- src/application
- 22.140 Endianness
- src/application
- 22.160 File Parsing Exercise Solution
- src/application
- 23.010 Swing Menus
- src
- application
- gui
- model
- 23.020 Save Dialogs
- src
- application
- gui
- model
- 23.030 Getting the Selected File
- src
- application
- gui
- model
- 23.040 Saving the Grid
- src
- application
- gui
- model
- 23.050 File Open Dialogs
- src
- application
- gui
- model
- 23.060 Loading Files
- src
- application
- gui
- model
- 23.070 Error and Warning Messages
- src
- application
- exceptions
- gui
- model
- 24.010 A Simple Hierarchy
- src
- application
- heirarchy
- 24.020 A Wrapper Class
- src
- application
- collections
- heirarchy
- 24.030 Introducing Generics
- src
- application
- collections
- heirarchy
- 24.050 A Pair Class
- src
- application
- collections
- heirarchy
- 24.060 An Array Class
- src
- application
- collections
- heirarchy
- 24.070 Generic Methods
- src
- application
- collections
- heirarchy
- 24.080 Generic Bounds
- src
- application
- collections
- heirarchy
- 24.090 Super and PECS I
- src
- application
- collections
- heirarchy
- 24.100 Super and PECS 2
- src
- application
- collections
- heirarchy
- 24.110 Util Copy Exercise
- src
- application
- collections
- heirarchy
- 24.120 Add All Exercise
- src
- application
- collections
- heirarchy
- 25.010 ArrayList
- src/application
- 25.020 Iterating through ArrayList
- src/application
- 25.030 Custom Objects in ArrayLists
- src/application
- 25.040 Sorting Lists
- src/application
- 25.050 Implementing Comparable
- src/application
- 25.060 How Comparable Works
- src/application
- 25.070 Comparable Example
- src/application
- 25.080 Comparators
- src/application
- 25.090 ArrayList Exercise
- src/application
- 25.100 LinkedList
- src/application
- 25.110 The List Interface
- src
- 25.120 Initializing Lists With Lists
- src/application
- 25.130 Static Methods in Interfaces
- src/application
- 25.140 Variable Arguments
- src/application
- 25.150 Timing List Operations Exercise
- src/application
- 25.160 Timing List Operations Solution
- src/application
- 25.170 Time Complexity
- src/application
- 25.180 Instanceof
- src/application
- 25.190 Equals
- src/application
- 25.200 Removing Items From Lists
- src/application
- 25.210 ConcurrentModificationException
- src/application
- 25.220 Iterators
- src/application
- 25.230 Getting Creative With Iterators
- src/application
- 25.240 Modifying Lists While Iterating
- src/application
- 25.250 Ring Buffer Exercise
- src/application
- 25.260 Ring Buffer Solution
- src/application
- 25.270 Implementing Iterable
- src/application
- 25.280 Circular Iterator Exercise
- src/application
- 25.290 Circular Iterator Solution
- src/application
- 25.300 ForEachAndIterators
- src/application
- 25.310 HashSet
- src
- 25.320 Hashing Algorithms
- src/application
- 25.330 The hashCode Method
- src/app
- 25.340 UnionAndIntersection
- src/app
- 25.350 RemoveAll
- src/app
- 25.360 LinkedHashSet
- src/app
- 25.370 TreeSet
- src/app
- 25.380 Set and SortedSet
- src/app
- 25.390 Collections Review
- src/app
- 25.400 Sets And Lists Exercise
- src/app
- 25.410 Sets And Lists Solution 1
- src/app
- 25.420 Sets and Lists Solution 2
- src/app
- 25.430 Sets And Lists Solution 3
- src/app
- 25.440 HashMaps
- src/app
- 25.450 Static Imports
- src
- 25.460 Initializing Maps
- src/app
- 25.470 Iterating Through Maps
- src/app
- 25.480 Ordered Maps
- src/app
- 25.490 Custom Objects in Maps Exercise
- src/app
- 25.500 Custom Objects in Maps Solution
- src/app
- 25.510 Lists of Sets
- src/app
- 25.520 MapsOfLists
- src/app
- 25.530 Complex Data Structures
- src/app
- 25.540 CollectionsAndInheritance
- src/app
- 26.010 Playing a Note
- src/app
- 26.020 Playing Chords
- src/app
- 26.030 MidiExerciseSolution
- src/app
- 27.010 Collections Rota Exercise
- src
- app
- solution
- 27.020 PersonClass
- src/app
- 27.030 LoadingTheData
- src/app
- 27.040 Rota Class
- src/app
- 27.050 Implementing the Rota
- src/app
- 27.060 Vital Skill Set
- src/app
- 27.070 Rota Algorithm
- src/app
- 27.100 Adding People
- src/app
- 28.010 Lambda Expression Example
- src/app
- 28.020 Functional Interfaces
- src/app
- 28.030 A Lambda Expression From Scratch
- src/app
- 28.040 Lambda Expressions With Single Parameters
- src/app
- 28.050 Multiple Parameter Lambdas
- src/app
- 28.060 Return Values in Lambdas
- src/app
- 28.070 LambdasAndCapture
- src/app
- 28.100 Unmodifiable Lists
- src/app
- 28.110 Predicates
- src/app
- 28.120 Filtering Lists
- src/app
- 28.130 Function
- src/app
- 28.140 ReplaceAll
- src/app
- 28.150 LambdaExercise
- src/app
- 28.160 Multithreading
- src/app
- 28.170 Incrementing via Threads
- src/app
- 28.180 Synchronized
- src/app
- 29.010 Method References
- src/app
- 29.020 Breaking Down Method References
- src/app
- 29.030 Method Reference Examples
- src/app
- 29.040 References to Methods of Particular Objects
- src/app
- 29.050 References to Methods of Arbitary Objects
- src/app
- 29.060 Compare To Method Reference
- src/app
- 29.070 References to Constructors
- src/app
- 30.010 Streams
- src/app
- 30.020 Generating Streams
- src/app
- 30.030 Generating Streams from Files
- src/app
- 30.040 Transforming Streams
- src/app
- 30.050 Regular Expressions
- src/app
- 30.060 Collectors
- src/app
- 30.070 Peek
- src/app
- 30.080 FlatMap
- src/app
- 30.090 Stream Exercise 1
- src/app
- 30.100 Reduce
- src/app
- 30.110 Combiners
- src/app
- 30.120 Stream Exercise 2
- src/app
- 30.130 Implementing Collectors
- src/app
- 30.140 Streams Exercise 3
- src/app
- 30.150 Combining Maps
- src/app
- 30.160 Implementing the Solution
- src/app
- 30.170 Filter
- src/app
- 30.180 Map Exercise
- src/app
- 30.190 Sorting Streams
- src/app
- 30.200 Group By
- src/app
- 30.210 Streams and Static Imports
- src/app
- BitwiseAndOr/src/app
- BitwiseExclusiveOrAndNot/src/app
- BitwiseExerciseSolution/src/app
- BitwiseHexadecimal/src/app
- BitwiseShift/src/app
- FinalClasses/src/app
- FormattingBinaryNumbers/src/app
- FormingTheIndex/src
- app
- controller
- gui
- GenerateWave
- src/application
- GettingColors/src
- app
- controller
- gui
- HelloAgainSwing/src
- app
- controller
- gui
- ImplementingTheRule/src
- app
- controller
- gui
- JarExport/src/model
- JarImport
- lib
- src
- application
- gui
- NumberingSystems/src/app
- ReactionTimes
- output
- src
- application
- entity
- interfaces
- panels
- SettingPixels/src
- app
- controller
- gui
- StreamExercise4/src/app
- StreamMultiplicationInASingleString/src/app
- StreamMultiplicationTableWithForEach/src/app
- UsingWolframCode/src
- app
- controller
- gui
- WolframCode/src
- app
- controller
- gui
- orphaned
- CollectionsExercise
- src
- app
- solution
- DefaultMethods
- src/application
- DisplayingBlanks
- src
- DisplayingWords
- src
- FloatingPointVariables
- src/application
- HandlingResize
- src
- application
- gui
- model
- MainRevisited
- src/application
- SwingExample
- src
- TheGuessWordClass
- src/application
- Threads
- src/application
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,235 files changed
+1357
-0
lines changedFile mode changed.
File mode changed.
File mode changed.
File mode changed.
File mode changed.
File mode changed.
File mode changed.
File mode changed.
File mode changed.
File mode changed.
0 commit comments