[{"data":1,"prerenderedAt":2868},["ShallowReactive",2],{"item-lessons-light-ch05-control-structures":3,"item-examples-light-ch05-control-structures":444,"item-exercises-light-ch05-control-structures":753,"item-lesson-full-ch05-control-structures-5.5":1070,"item-example-full-ch05-control-structures-5.5":1649,"item-exercise-full-ch05-control-structures-5.5":1945},[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,388,392,396,400,404,408,412,416,420,424,428,432,436,440],{"path":5,"title":6,"stem":7},"\u002Fshockwave-curriculum\u002Flessons\u002Fch01-why-java-for-frc\u002F1-why-java-for-frc","Why Java for FRC?","shockwave-curriculum\u002Flessons\u002Fch01-why-java-for-frc\u002F1.1-why-java-for-frc",{"path":9,"title":10,"stem":11},"\u002Fshockwave-curriculum\u002Flessons\u002Fch01-why-java-for-frc\u002F2-intro-to-algorithms-programming-and-compilers","Intro to Algorithms, Programming and Compilers","shockwave-curriculum\u002Flessons\u002Fch01-why-java-for-frc\u002F1.2-intro-to-algorithms-programming-and-compilers",{"path":13,"title":14,"stem":15},"\u002Fshockwave-curriculum\u002Flessons\u002Fch02-variables-and-types\u002F1-variables-and-data-types","Variables & Data Types","shockwave-curriculum\u002Flessons\u002Fch02-variables-and-types\u002F2.1-variables-and-data-types",{"path":17,"title":18,"stem":19},"\u002Fshockwave-curriculum\u002Flessons\u002Fch02-variables-and-types\u002F2-expressions-and-output","Expressions & Output","shockwave-curriculum\u002Flessons\u002Fch02-variables-and-types\u002F2.2-expressions-and-output",{"path":21,"title":22,"stem":23},"\u002Fshockwave-curriculum\u002Flessons\u002Fch02-variables-and-types\u002F3-assignment-and-input","Assignment & Input","shockwave-curriculum\u002Flessons\u002Fch02-variables-and-types\u002F2.3-assignment-and-input",{"path":25,"title":26,"stem":27},"\u002Fshockwave-curriculum\u002Flessons\u002Fch02-variables-and-types\u002F4-casting-and-ranges-of-values","Casting & Ranges of Values","shockwave-curriculum\u002Flessons\u002Fch02-variables-and-types\u002F2.4-casting-and-ranges-of-values",{"path":29,"title":30,"stem":31},"\u002Fshockwave-curriculum\u002Flessons\u002Fch02-variables-and-types\u002F5-compound-assignment-operators","Compound Assignment Operators","shockwave-curriculum\u002Flessons\u002Fch02-variables-and-types\u002F2.5-compound-assignment-operators",{"path":33,"title":34,"stem":35},"\u002Fshockwave-curriculum\u002Flessons\u002Fch03-apis-libraries-and-documentation\u002F1-apis-and-libraries","APIs and Libraries","shockwave-curriculum\u002Flessons\u002Fch03-apis-libraries-and-documentation\u002F3.1-apis-and-libraries",{"path":37,"title":38,"stem":39},"\u002Fshockwave-curriculum\u002Flessons\u002Fch03-apis-libraries-and-documentation\u002F2-documentation-with-comments-and-preconditions","Documentation with Comments and Preconditions","shockwave-curriculum\u002Flessons\u002Fch03-apis-libraries-and-documentation\u002F3.2-documentation-with-comments-and-preconditions",{"path":41,"title":42,"stem":43},"\u002Fshockwave-curriculum\u002Flessons\u002Fch03-apis-libraries-and-documentation\u002F3-packages-and-imports","Packages & Imports","shockwave-curriculum\u002Flessons\u002Fch03-apis-libraries-and-documentation\u002F3.3-packages-and-imports",{"path":45,"title":46,"stem":47},"\u002Fshockwave-curriculum\u002Flessons\u002Fch04-using-objects-and-calling-methods\u002F1-methods-signatures-and-parameters","Methods, Signatures & Parameters","shockwave-curriculum\u002Flessons\u002Fch04-using-objects-and-calling-methods\u002F4.1-methods-signatures-and-parameters",{"path":49,"title":50,"stem":51},"\u002Fshockwave-curriculum\u002Flessons\u002Fch04-using-objects-and-calling-methods\u002F2-calling-class-methods","Calling Class Methods","shockwave-curriculum\u002Flessons\u002Fch04-using-objects-and-calling-methods\u002F4.2-calling-class-methods",{"path":53,"title":54,"stem":55},"\u002Fshockwave-curriculum\u002Flessons\u002Fch04-using-objects-and-calling-methods\u002F3-using-the-math-class","Using the Math Class","shockwave-curriculum\u002Flessons\u002Fch04-using-objects-and-calling-methods\u002F4.3-using-the-math-class",{"path":57,"title":58,"stem":59},"\u002Fshockwave-curriculum\u002Flessons\u002Fch04-using-objects-and-calling-methods\u002F4-objects-instances-of-classes","Objects — Instances of Classes","shockwave-curriculum\u002Flessons\u002Fch04-using-objects-and-calling-methods\u002F4.4-objects-instances-of-classes",{"path":61,"title":62,"stem":63},"\u002Fshockwave-curriculum\u002Flessons\u002Fch04-using-objects-and-calling-methods\u002F5-creating-and-initializing-objects-constructors","Creating & Initializing Objects: Constructors","shockwave-curriculum\u002Flessons\u002Fch04-using-objects-and-calling-methods\u002F4.5-creating-and-initializing-objects-constructors",{"path":65,"title":66,"stem":67},"\u002Fshockwave-curriculum\u002Flessons\u002Fch04-using-objects-and-calling-methods\u002F6-calling-instance-methods","Calling Instance Methods","shockwave-curriculum\u002Flessons\u002Fch04-using-objects-and-calling-methods\u002F4.6-calling-instance-methods",{"path":69,"title":70,"stem":71},"\u002Fshockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F1-5.2-if-statements-and-for-loops","Control Structures: if Statements & For Loops","shockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F5.1-5.2-if-statements-and-for-loops",{"path":73,"title":74,"stem":75},"\u002Fshockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F10-nested-iteration","Nested Iteration","shockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F5.10-nested-iteration",{"path":77,"title":78,"stem":79},"\u002Fshockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F11-informal-runtime-analysis-of-loops","Informal Runtime Analysis of Loops","shockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F5.11-informal-runtime-analysis-of-loops",{"path":81,"title":82,"stem":83},"\u002Fshockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F12-switch-statements-and-expressions","switch Statements and Expressions","shockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F5.12-switch-statements-and-expressions",{"path":85,"title":86,"stem":87},"\u002Fshockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F3-algorithms-with-selection-and-repetition","Algorithms with Selection and Repetition","shockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F5.3-algorithms-with-selection-and-repetition",{"path":89,"title":90,"stem":91},"\u002Fshockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F4-boolean-expressions","Boolean Expressions","shockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F5.4-boolean-expressions",{"path":93,"title":94,"stem":95},"\u002Fshockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F5-nested-if-statements","Nested if Statements","shockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F5.5-nested-if-statements",{"path":97,"title":98,"stem":99},"\u002Fshockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F6-compound-boolean-expressions","Compound Boolean Expressions","shockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F5.6-compound-boolean-expressions",{"path":101,"title":102,"stem":103},"\u002Fshockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F7-comparing-boolean-expressions-de-morgans-laws","Comparing Boolean Expressions (De Morgan's Laws)","shockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F5.7-comparing-boolean-expressions-de-morgans-laws",{"path":105,"title":106,"stem":107},"\u002Fshockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F8-while-loops","While Loops","shockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F5.8-while-loops",{"path":109,"title":110,"stem":111},"\u002Fshockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F9-implementing-selection-and-iteration-algorithms","Implementing Selection and Iteration Algorithms","shockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F5.9-implementing-selection-and-iteration-algorithms",{"path":113,"title":114,"stem":115},"\u002Fshockwave-curriculum\u002Flessons\u002Fch06-strings\u002F1-strings","Strings","shockwave-curriculum\u002Flessons\u002Fch06-strings\u002F6.1-strings",{"path":117,"title":118,"stem":119},"\u002Fshockwave-curriculum\u002Flessons\u002Fch06-strings\u002F2-string-algorithms","String Algorithms","shockwave-curriculum\u002Flessons\u002Fch06-strings\u002F6.2-string-algorithms",{"path":121,"title":122,"stem":123},"\u002Fshockwave-curriculum\u002Flessons\u002Fch07-the-class-blueprint\u002F1-anatomy-of-a-java-class","The Class Blueprint","shockwave-curriculum\u002Flessons\u002Fch07-the-class-blueprint\u002F7.1-anatomy-of-a-java-class",{"path":125,"title":126,"stem":127},"\u002Fshockwave-curriculum\u002Flessons\u002Fch07-the-class-blueprint\u002F2-methods-how-to-write-them","Methods: How to Write Them","shockwave-curriculum\u002Flessons\u002Fch07-the-class-blueprint\u002F7.2-methods-how-to-write-them",{"path":129,"title":130,"stem":131},"\u002Fshockwave-curriculum\u002Flessons\u002Fch07-the-class-blueprint\u002F3-methods-passing-and-returning-references-of-an-object","Methods: Passing & Returning References of an Object","shockwave-curriculum\u002Flessons\u002Fch07-the-class-blueprint\u002F7.3-methods-passing-and-returning-references-of-an-object",{"path":133,"title":134,"stem":135},"\u002Fshockwave-curriculum\u002Flessons\u002Fch07-the-class-blueprint\u002F4-class-static-variables-and-methods","Class (static) Variables & Methods","shockwave-curriculum\u002Flessons\u002Fch07-the-class-blueprint\u002F7.4-class-static-variables-and-methods",{"path":137,"title":138,"stem":139},"\u002Fshockwave-curriculum\u002Flessons\u002Fch08-constructors-and-this\u002F1-8.2-constructors-and-this","Constructors & \"this\"","shockwave-curriculum\u002Flessons\u002Fch08-constructors-and-this\u002F8.1-8.2-constructors-and-this",{"path":141,"title":142,"stem":143},"\u002Fshockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F1-array-creation-and-access","Array Creation and Access","shockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F9.1-array-creation-and-access",{"path":145,"title":146,"stem":147},"\u002Fshockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F2-arraylist-and-its-methods","ArrayList and its Methods","shockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F9.2-arraylist-and-its-methods",{"path":149,"title":150,"stem":151},"\u002Fshockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F3-optional-hashmap-dictionary-data-structure","HashMap (Dictionary) Data Structure","shockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F9.3-optional-hashmap-dictionary-data-structure",{"path":153,"title":154,"stem":155},"\u002Fshockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F4-array-traversals","Array Traversals","shockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F9.4-array-traversals",{"path":157,"title":158,"stem":159},"\u002Fshockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F5-implementing-array-algorithms","Implementing Array Algorithms","shockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F9.5-implementing-array-algorithms",{"path":161,"title":162,"stem":163},"\u002Fshockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F6-arraylist-traversals","ArrayList Traversals","shockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F9.6-arraylist-traversals",{"path":165,"title":166,"stem":167},"\u002Fshockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F7-implementing-arraylist-algorithms","Implementing ArrayList Algorithms","shockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F9.7-implementing-arraylist-algorithms",{"path":169,"title":170,"stem":171},"\u002Fshockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F8-using-text-files","Using Text Files","shockwave-curriculum\u002Flessons\u002Fch09-storing-data\u002F9.8-using-text-files",{"path":173,"title":174,"stem":175},"\u002Fshockwave-curriculum\u002Flessons\u002Fch10-2d-arrays\u002F1-2d-array-creation-and-access","2D Array Creation and Access","shockwave-curriculum\u002Flessons\u002Fch10-2d-arrays\u002F10.1-2d-array-creation-and-access",{"path":177,"title":178,"stem":179},"\u002Fshockwave-curriculum\u002Flessons\u002Fch10-2d-arrays\u002F2-2d-array-traversals-nested-loops","2D Array Traversals: Nested Loops","shockwave-curriculum\u002Flessons\u002Fch10-2d-arrays\u002F10.2-2d-array-traversals-nested-loops",{"path":181,"title":182,"stem":183},"\u002Fshockwave-curriculum\u002Flessons\u002Fch10-2d-arrays\u002F3-implementing-2d-array-algorithms","Implementing 2D Array Algorithms","shockwave-curriculum\u002Flessons\u002Fch10-2d-arrays\u002F10.3-implementing-2d-array-algorithms",{"path":185,"title":186,"stem":187},"\u002Fshockwave-curriculum\u002Flessons\u002Fch11-enums-named-choices\u002F11-enums-named-choices","Enums: Named Choices","shockwave-curriculum\u002Flessons\u002Fch11-enums-named-choices\u002F11-enums-named-choices",{"path":189,"title":190,"stem":191},"\u002Fshockwave-curriculum\u002Flessons\u002Fch12-exceptions-and-try-catch\u002F12-exceptions-and-try-catch","Exceptions & try\u002Fcatch","shockwave-curriculum\u002Flessons\u002Fch12-exceptions-and-try-catch\u002F12-exceptions-and-try-catch",{"path":193,"title":194,"stem":195},"\u002Fshockwave-curriculum\u002Flessons\u002Fch13-common-gotchas\u002F13-common-gotchas","Common Gotchas","shockwave-curriculum\u002Flessons\u002Fch13-common-gotchas\u002F13-common-gotchas",{"path":197,"title":198,"stem":199},"\u002Fshockwave-curriculum\u002Flessons\u002Fch14-why-design-patterns\u002F14-why-design-patterns","Why Design Patterns?","shockwave-curriculum\u002Flessons\u002Fch14-why-design-patterns\u002F14-why-design-patterns",{"path":201,"title":202,"stem":203},"\u002Fshockwave-curriculum\u002Flessons\u002Fch15-advanced-collections\u002F15-advanced-collections","Advanced Collections (Set\u002FQueue\u002FMap)","shockwave-curriculum\u002Flessons\u002Fch15-advanced-collections\u002F15-advanced-collections",{"path":205,"title":206,"stem":207},"\u002Fshockwave-curriculum\u002Flessons\u002Fch16-writing-your-own-generics\u002F16-writing-your-own-generics","Writing Your Own Generics","shockwave-curriculum\u002Flessons\u002Fch16-writing-your-own-generics\u002F16-writing-your-own-generics",{"path":209,"title":210,"stem":211},"\u002Fshockwave-curriculum\u002Flessons\u002Fch17-inheritance-and-abstractions\u002F1-inheritance-superclass-subclass","Inheritance, Superclass, Subclass","shockwave-curriculum\u002Flessons\u002Fch17-inheritance-and-abstractions\u002F17.1-inheritance-superclass-subclass",{"path":213,"title":214,"stem":215},"\u002Fshockwave-curriculum\u002Flessons\u002Fch17-inheritance-and-abstractions\u002F2-inheritance-and-constructors","Inheritance and Constructors","shockwave-curriculum\u002Flessons\u002Fch17-inheritance-and-abstractions\u002F17.2-inheritance-and-constructors",{"path":217,"title":218,"stem":219},"\u002Fshockwave-curriculum\u002Flessons\u002Fch17-inheritance-and-abstractions\u002F3-inheritance-hierarchies","Inheritance Hierarchies","shockwave-curriculum\u002Flessons\u002Fch17-inheritance-and-abstractions\u002F17.3-inheritance-hierarchies",{"path":221,"title":222,"stem":223},"\u002Fshockwave-curriculum\u002Flessons\u002Fch17-inheritance-and-abstractions\u002F4-object-superclass","Object Superclass","shockwave-curriculum\u002Flessons\u002Fch17-inheritance-and-abstractions\u002F17.4-object-superclass",{"path":225,"title":226,"stem":227},"\u002Fshockwave-curriculum\u002Flessons\u002Fch17-inheritance-and-abstractions\u002F5-abstract-classes-and-methods","Abstract Classes and Methods","shockwave-curriculum\u002Flessons\u002Fch17-inheritance-and-abstractions\u002F17.5-abstract-classes-and-methods",{"path":229,"title":230,"stem":231},"\u002Fshockwave-curriculum\u002Flessons\u002Fch18-polymorphism-many-forms\u002F1-overriding-methods","Overriding Methods","shockwave-curriculum\u002Flessons\u002Fch18-polymorphism-many-forms\u002F18.1-overriding-methods",{"path":233,"title":234,"stem":235},"\u002Fshockwave-curriculum\u002Flessons\u002Fch18-polymorphism-many-forms\u002F2-super-keyword","super Keyword","shockwave-curriculum\u002Flessons\u002Fch18-polymorphism-many-forms\u002F18.2-super-keyword",{"path":237,"title":238,"stem":239},"\u002Fshockwave-curriculum\u002Flessons\u002Fch18-polymorphism-many-forms\u002F3-polymorphism","Polymorphism","shockwave-curriculum\u002Flessons\u002Fch18-polymorphism-many-forms\u002F18.3-polymorphism",{"path":241,"title":242,"stem":243},"\u002Fshockwave-curriculum\u002Flessons\u002Fch19-interfaces-as-contracts\u002F19-interfaces-as-contracts","Interfaces as Contracts","shockwave-curriculum\u002Flessons\u002Fch19-interfaces-as-contracts\u002F19-interfaces-as-contracts",{"path":245,"title":246,"stem":247},"\u002Fshockwave-curriculum\u002Flessons\u002Fch19-interfaces-as-contracts\u002F1-lambdas-and-method-references","Lambdas & Method References","shockwave-curriculum\u002Flessons\u002Fch19-interfaces-as-contracts\u002F19.1-lambdas-and-method-references",{"path":249,"title":250,"stem":251},"\u002Fshockwave-curriculum\u002Flessons\u002Fch20-the-io-layer-pattern\u002F20-the-io-layer-pattern","The IO-Layer Pattern","shockwave-curriculum\u002Flessons\u002Fch20-the-io-layer-pattern\u002F20-the-io-layer-pattern",{"path":253,"title":254,"stem":255},"\u002Fshockwave-curriculum\u002Flessons\u002Fch21-static-factories\u002F21-static-factories","Static Factories","shockwave-curriculum\u002Flessons\u002Fch21-static-factories\u002F21-static-factories",{"path":257,"title":258,"stem":259},"\u002Fshockwave-curriculum\u002Flessons\u002Fch22-the-builder-pattern\u002F22-the-builder-pattern","The Builder Pattern","shockwave-curriculum\u002Flessons\u002Fch22-the-builder-pattern\u002F22-the-builder-pattern",{"path":261,"title":262,"stem":263},"\u002Fshockwave-curriculum\u002Flessons\u002Fch23-encapsulation-and-final\u002F1-scope-and-access","Access, final, and Immutability","shockwave-curriculum\u002Flessons\u002Fch23-encapsulation-and-final\u002F23.1-scope-and-access",{"path":265,"title":266,"stem":267},"\u002Fshockwave-curriculum\u002Flessons\u002Fch24-optional-avoiding-null-pointer-exceptions\u002F24-optional-avoiding-null-pointer-exceptions","Optional: Avoiding Null Pointer Exceptions","shockwave-curriculum\u002Flessons\u002Fch24-optional-avoiding-null-pointer-exceptions\u002F24-optional-avoiding-null-pointer-exceptions",{"path":269,"title":270,"stem":271},"\u002Fshockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F1-what-is-command-based-programming","What Is Command-Based Programming?","shockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F25.1-what-is-command-based-programming",{"path":273,"title":274,"stem":275},"\u002Fshockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F2-commands-and-command-compositions","Commands & Command Compositions","shockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F25.2-commands-and-command-compositions",{"path":277,"title":278,"stem":279},"\u002Fshockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F3-the-command-scheduler","The Command Scheduler","shockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F25.3-the-command-scheduler",{"path":281,"title":282,"stem":283},"\u002Fshockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F4-state-machines-logic","State Machines: Logic","shockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F25.4-state-machines-logic",{"path":285,"title":286,"stem":287},"\u002Fshockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F5-managing-transitions","Managing Transitions","shockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F25.5-managing-transitions",{"path":289,"title":290,"stem":291},"\u002Fshockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F6-binding-commands-to-triggers","Binding Commands to Triggers","shockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F25.6-binding-commands-to-triggers",{"path":293,"title":294,"stem":295},"\u002Fshockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F7-structuring-a-command-based-robot-project","Structuring a Command-Based Robot Project","shockwave-curriculum\u002Flessons\u002Fch25-command-based-programming\u002F25.7-structuring-a-command-based-robot-project",{"path":297,"title":298,"stem":299},"\u002Fshockwave-curriculum\u002Flessons\u002Fch26-architecture-takeaways\u002F26-architecture-takeaways","Architecture Takeaways","shockwave-curriculum\u002Flessons\u002Fch26-architecture-takeaways\u002F26-architecture-takeaways",{"path":301,"title":302,"stem":303},"\u002Fshockwave-curriculum\u002Flessons\u002Fch27-program-design-and-abstraction\u002F1-abstraction-and-program-design","Abstraction and Program Design","shockwave-curriculum\u002Flessons\u002Fch27-program-design-and-abstraction\u002F27.1-abstraction-and-program-design",{"path":305,"title":306,"stem":307},"\u002Fshockwave-curriculum\u002Flessons\u002Fch27-program-design-and-abstraction\u002F2-impact-of-program-design","Impact of Program Design","shockwave-curriculum\u002Flessons\u002Fch27-program-design-and-abstraction\u002F27.2-impact-of-program-design",{"path":309,"title":310,"stem":311},"\u002Fshockwave-curriculum\u002Flessons\u002Fch28-algorithms-searching-sorting-recursion\u002F1-searching-algorithms","Searching Algorithms","shockwave-curriculum\u002Flessons\u002Fch28-algorithms-searching-sorting-recursion\u002F28.1-searching-algorithms",{"path":313,"title":314,"stem":315},"\u002Fshockwave-curriculum\u002Flessons\u002Fch28-algorithms-searching-sorting-recursion\u002F2-sorting-algorithms","Sorting Algorithms","shockwave-curriculum\u002Flessons\u002Fch28-algorithms-searching-sorting-recursion\u002F28.2-sorting-algorithms",{"path":317,"title":318,"stem":319},"\u002Fshockwave-curriculum\u002Flessons\u002Fch28-algorithms-searching-sorting-recursion\u002F3-recursion","Recursion","shockwave-curriculum\u002Flessons\u002Fch28-algorithms-searching-sorting-recursion\u002F28.3-recursion",{"path":321,"title":322,"stem":323},"\u002Fshockwave-curriculum\u002Flessons\u002Fch28-algorithms-searching-sorting-recursion\u002F4-recursive-searching-and-sorting","Recursive Searching and Sorting","shockwave-curriculum\u002Flessons\u002Fch28-algorithms-searching-sorting-recursion\u002F28.4-recursive-searching-and-sorting",{"path":325,"title":326,"stem":327},"\u002Fshockwave-curriculum\u002Flessons\u002Fch29-git-and-github-basics\u002F1-coming-soon","Git & GitHub Basics — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch29-git-and-github-basics\u002F29.1-coming-soon",{"path":329,"title":330,"stem":331},"\u002Fshockwave-curriculum\u002Flessons\u002Fch30-git-history-and-merging\u002F1-coming-soon","Git — History & Merging — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch30-git-history-and-merging\u002F30.1-coming-soon",{"path":333,"title":334,"stem":335},"\u002Fshockwave-curriculum\u002Flessons\u002Fch31-dev-environment-and-tooling\u002F1-coming-soon","Dev Environment & Tooling — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch31-dev-environment-and-tooling\u002F31.1-coming-soon",{"path":337,"title":338,"stem":339},"\u002Fshockwave-curriculum\u002Flessons\u002Fch32-unit-testing\u002F1-coming-soon","Unit Testing — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch32-unit-testing\u002F32.1-coming-soon",{"path":341,"title":342,"stem":343},"\u002Fshockwave-curriculum\u002Flessons\u002Fch33-advantagekit-autologging\u002F1-coming-soon","AdvantageKit — AutoLogging — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch33-advantagekit-autologging\u002F33.1-coming-soon",{"path":345,"title":346,"stem":347},"\u002Fshockwave-curriculum\u002Flessons\u002Fch34-log-replay\u002F1-coming-soon","Log Replay — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch34-log-replay\u002F34.1-coming-soon",{"path":349,"title":350,"stem":351},"\u002Fshockwave-curriculum\u002Flessons\u002Fch35-advantagescope-i-visualization\u002F1-coming-soon","AdvantageScope I: Visualization — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch35-advantagescope-i-visualization\u002F35.1-coming-soon",{"path":353,"title":354,"stem":355},"\u002Fshockwave-curriculum\u002Flessons\u002Fch36-advantagescope-ii-custom-3d-assets\u002F1-coming-soon","AdvantageScope II: Custom 3D Assets — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch36-advantagescope-ii-custom-3d-assets\u002F36.1-coming-soon",{"path":357,"title":358,"stem":359},"\u002Fshockwave-curriculum\u002Flessons\u002Fch37-autonomous-i\u002F1-coming-soon","Autonomous I — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch37-autonomous-i\u002F37.1-coming-soon",{"path":361,"title":362,"stem":363},"\u002Fshockwave-curriculum\u002Flessons\u002Fch38-autonomous-ii-pathplanner-and-trajectories\u002F1-coming-soon","Autonomous II: PathPlanner & Trajectories — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch38-autonomous-ii-pathplanner-and-trajectories\u002F38.1-coming-soon",{"path":365,"title":366,"stem":367},"\u002Fshockwave-curriculum\u002Flessons\u002Fch39-control-fundamentals\u002F1-coming-soon","Control Fundamentals — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch39-control-fundamentals\u002F39.1-coming-soon",{"path":369,"title":370,"stem":371},"\u002Fshockwave-curriculum\u002Flessons\u002Fch40-motion-profiles\u002F1-coming-soon","Motion Profiles — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch40-motion-profiles\u002F40.1-coming-soon",{"path":373,"title":374,"stem":375},"\u002Fshockwave-curriculum\u002Flessons\u002Fch41-hardware-fundamentals\u002F1-coming-soon","Hardware Fundamentals — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch41-hardware-fundamentals\u002F41.1-coming-soon",{"path":377,"title":378,"stem":379},"\u002Fshockwave-curriculum\u002Flessons\u002Fch42-photonvision\u002F1-coming-soon","PhotonVision — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch42-photonvision\u002F42.1-coming-soon",{"path":381,"title":382,"stem":383},"\u002Fshockwave-curriculum\u002Flessons\u002Fch43-apriltags-and-pose\u002F1-coming-soon","AprilTags & Pose — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch43-apriltags-and-pose\u002F43.1-coming-soon",{"path":385,"title":386,"stem":387},"\u002Fshockwave-curriculum\u002Flessons\u002Fch44-subsystems-i\u002F1-coming-soon","Subsystems I — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch44-subsystems-i\u002F44.1-coming-soon",{"path":389,"title":390,"stem":391},"\u002Fshockwave-curriculum\u002Flessons\u002Fch45-subsystems-ii-advanced\u002F1-coming-soon","Subsystems II — Advanced — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch45-subsystems-ii-advanced\u002F45.1-coming-soon",{"path":393,"title":394,"stem":395},"\u002Fshockwave-curriculum\u002Flessons\u002Fch46-team-utilities-i\u002F1-coming-soon","Team Utilities I — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch46-team-utilities-i\u002F46.1-coming-soon",{"path":397,"title":398,"stem":399},"\u002Fshockwave-curriculum\u002Flessons\u002Fch47-field-constants\u002F1-coming-soon","Field Constants — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch47-field-constants\u002F47.1-coming-soon",{"path":401,"title":402,"stem":403},"\u002Fshockwave-curriculum\u002Flessons\u002Fch48-troubleshooting-i-runtime-debug\u002F1-coming-soon","Troubleshooting I — Runtime Debug — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch48-troubleshooting-i-runtime-debug\u002F48.1-coming-soon",{"path":405,"title":406,"stem":407},"\u002Fshockwave-curriculum\u002Flessons\u002Fch49-troubleshooting-ii-can-and-sim\u002F1-coming-soon","Troubleshooting II: CAN & Sim — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch49-troubleshooting-ii-can-and-sim\u002F49.1-coming-soon",{"path":409,"title":410,"stem":411},"\u002Fshockwave-curriculum\u002Flessons\u002Fch50-vendor-libraries-talonfx\u002F1-coming-soon","Vendor Libraries: TalonFX — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch50-vendor-libraries-talonfx\u002F50.1-coming-soon",{"path":413,"title":414,"stem":415},"\u002Fshockwave-curriculum\u002Flessons\u002Fch51-robot-alerts\u002F1-coming-soon","Robot Alerts — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch51-robot-alerts\u002F51.1-coming-soon",{"path":417,"title":418,"stem":419},"\u002Fshockwave-curriculum\u002Flessons\u002Fch52-wpilib-commands\u002F1-coming-soon","WPILib Commands — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch52-wpilib-commands\u002F52.1-coming-soon",{"path":421,"title":422,"stem":423},"\u002Fshockwave-curriculum\u002Flessons\u002Fch53-wpilib-geometry\u002F1-coming-soon","WPILib Geometry — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch53-wpilib-geometry\u002F53.1-coming-soon",{"path":425,"title":426,"stem":427},"\u002Fshockwave-curriculum\u002Flessons\u002Fch54-networktables\u002F1-coming-soon","NetworkTables — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch54-networktables\u002F54.1-coming-soon",{"path":429,"title":430,"stem":431},"\u002Fshockwave-curriculum\u002Flessons\u002Fch55-command-scheduler\u002F1-coming-soon","Command Scheduler — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch55-command-scheduler\u002F55.1-coming-soon",{"path":433,"title":434,"stem":435},"\u002Fshockwave-curriculum\u002Flessons\u002Fch56-wpilib-timers\u002F1-coming-soon","WPILib Timers — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch56-wpilib-timers\u002F56.1-coming-soon",{"path":437,"title":438,"stem":439},"\u002Fshockwave-curriculum\u002Flessons\u002Fch57-wpilib-triggers\u002F1-coming-soon","WPILib Triggers — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch57-wpilib-triggers\u002F57.1-coming-soon",{"path":441,"title":442,"stem":443},"\u002Fshockwave-curriculum\u002Flessons\u002Fch58-vendor-units-and-conversions\u002F1-coming-soon","Vendor Units & Conversions — Coming Soon","shockwave-curriculum\u002Flessons\u002Fch58-vendor-units-and-conversions\u002F58.1-coming-soon",[445,449,453,457,461,465,469,473,477,481,485,489,493,497,501,505,509,513,517,521,525,529,533,537,541,545,549,553,557,561,565,569,573,577,581,585,589,593,597,601,605,609,613,617,621,625,629,633,637,641,645,649,653,657,661,665,669,673,677,681,685,689,693,697,701,705,709,713,717,721,725,729,733,737,741,745,749],{"path":446,"title":447,"stem":448},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch01-why-java-for-frc\u002F2-intro-to-algorithms-programming-and-compilers","Intro to Algorithms, Programming and Compilers — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch01-why-java-for-frc\u002F1.2-intro-to-algorithms-programming-and-compilers",{"path":450,"title":451,"stem":452},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch02-variables-and-types\u002F1-variables-and-data-types","Variables & Data Types — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch02-variables-and-types\u002F2.1-variables-and-data-types",{"path":454,"title":455,"stem":456},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch02-variables-and-types\u002F2-expressions-and-output","Expressions & Output — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch02-variables-and-types\u002F2.2-expressions-and-output",{"path":458,"title":459,"stem":460},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch02-variables-and-types\u002F3-assignment-and-input","Assignment & Input — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch02-variables-and-types\u002F2.3-assignment-and-input",{"path":462,"title":463,"stem":464},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch02-variables-and-types\u002F4-casting-and-ranges-of-values","Casting & Ranges of Values — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch02-variables-and-types\u002F2.4-casting-and-ranges-of-values",{"path":466,"title":467,"stem":468},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch02-variables-and-types\u002F5-compound-assignment-operators","Compound Assignment Operators — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch02-variables-and-types\u002F2.5-compound-assignment-operators",{"path":470,"title":471,"stem":472},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch03-apis-libraries-and-documentation\u002F1-apis-and-libraries","APIs and Libraries — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch03-apis-libraries-and-documentation\u002F3.1-apis-and-libraries",{"path":474,"title":475,"stem":476},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch03-apis-libraries-and-documentation\u002F2-documentation-with-comments-and-preconditions","Documentation with Comments and Preconditions — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch03-apis-libraries-and-documentation\u002F3.2-documentation-with-comments-and-preconditions",{"path":478,"title":479,"stem":480},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch03-apis-libraries-and-documentation\u002F3-packages-and-imports","Packages & Imports — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch03-apis-libraries-and-documentation\u002F3.3-packages-and-imports",{"path":482,"title":483,"stem":484},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch04-using-objects-and-calling-methods\u002F1-methods-signatures-and-parameters","Methods, Signatures & Parameters — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch04-using-objects-and-calling-methods\u002F4.1-methods-signatures-and-parameters",{"path":486,"title":487,"stem":488},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch04-using-objects-and-calling-methods\u002F2-calling-class-methods","Calling Class Methods — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch04-using-objects-and-calling-methods\u002F4.2-calling-class-methods",{"path":490,"title":491,"stem":492},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch04-using-objects-and-calling-methods\u002F3-using-the-math-class","Using the Math Class — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch04-using-objects-and-calling-methods\u002F4.3-using-the-math-class",{"path":494,"title":495,"stem":496},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch04-using-objects-and-calling-methods\u002F4-objects-instances-of-classes","Objects — Instances of Classes — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch04-using-objects-and-calling-methods\u002F4.4-objects-instances-of-classes",{"path":498,"title":499,"stem":500},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch04-using-objects-and-calling-methods\u002F5-creating-and-initializing-objects-constructors","Creating & Initializing Objects: Constructors — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch04-using-objects-and-calling-methods\u002F4.5-creating-and-initializing-objects-constructors",{"path":502,"title":503,"stem":504},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch04-using-objects-and-calling-methods\u002F6-calling-instance-methods","Calling Instance Methods — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch04-using-objects-and-calling-methods\u002F4.6-calling-instance-methods",{"path":506,"title":507,"stem":508},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F1-5.2-if-statements-and-for-loops","if Statements & For Loops — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F5.1-5.2-if-statements-and-for-loops",{"path":510,"title":511,"stem":512},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F10-nested-iteration","Nested Iteration — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F5.10-nested-iteration",{"path":514,"title":515,"stem":516},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F11-informal-runtime-analysis-of-loops","Informal Runtime Analysis of Loops — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F5.11-informal-runtime-analysis-of-loops",{"path":518,"title":519,"stem":520},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F12-switch-statements-and-expressions","switch Statements and Expressions — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F5.12-switch-statements-and-expressions",{"path":522,"title":523,"stem":524},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F3-algorithms-with-selection-and-repetition","Algorithms with Selection and Repetition — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F5.3-algorithms-with-selection-and-repetition",{"path":526,"title":527,"stem":528},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F4-boolean-expressions","Boolean Expressions — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F5.4-boolean-expressions",{"path":530,"title":531,"stem":532},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F5-nested-if-statements","Nested if Statements — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F5.5-nested-if-statements",{"path":534,"title":535,"stem":536},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F6-compound-boolean-expressions","Compound Boolean Expressions — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F5.6-compound-boolean-expressions",{"path":538,"title":539,"stem":540},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F7-comparing-boolean-expressions-de-morgans-laws","Comparing Boolean Expressions (De Morgan's Laws) — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F5.7-comparing-boolean-expressions-de-morgans-laws",{"path":542,"title":543,"stem":544},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F8-while-loops","While Loops — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F5.8-while-loops",{"path":546,"title":547,"stem":548},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F9-implementing-selection-and-iteration-algorithms","Implementing Selection and Iteration Algorithms — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F5.9-implementing-selection-and-iteration-algorithms",{"path":550,"title":551,"stem":552},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch06-strings\u002F1-strings","Strings — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch06-strings\u002F6.1-strings",{"path":554,"title":555,"stem":556},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch06-strings\u002F2-string-algorithms","String Algorithms — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch06-strings\u002F6.2-string-algorithms",{"path":558,"title":559,"stem":560},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch07-the-class-blueprint\u002F1-anatomy-of-a-java-class","Anatomy of a Java Class — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch07-the-class-blueprint\u002F7.1-anatomy-of-a-java-class",{"path":562,"title":563,"stem":564},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch07-the-class-blueprint\u002F2-methods-how-to-write-them","Methods: How to Write Them — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch07-the-class-blueprint\u002F7.2-methods-how-to-write-them",{"path":566,"title":567,"stem":568},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch07-the-class-blueprint\u002F3-methods-passing-and-returning-references-of-an-object","Methods: Passing & Returning References of an Object — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch07-the-class-blueprint\u002F7.3-methods-passing-and-returning-references-of-an-object",{"path":570,"title":571,"stem":572},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch07-the-class-blueprint\u002F4-class-static-variables-and-methods","Class (static) Variables & Methods — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch07-the-class-blueprint\u002F7.4-class-static-variables-and-methods",{"path":574,"title":575,"stem":576},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch08-constructors-and-this\u002F1-8.2-constructors-and-this","Constructors & \"this\" — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch08-constructors-and-this\u002F8.1-8.2-constructors-and-this",{"path":578,"title":579,"stem":580},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F1-array-creation-and-access","Array Creation and Access — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F9.1-array-creation-and-access",{"path":582,"title":583,"stem":584},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F2-arraylist-and-its-methods","ArrayList and its Methods — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F9.2-arraylist-and-its-methods",{"path":586,"title":587,"stem":588},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F3-optional-hashmap-dictionary-data-structure","HashMap (Dictionary) Data Structure — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F9.3-optional-hashmap-dictionary-data-structure",{"path":590,"title":591,"stem":592},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F4-array-traversals","Array Traversals — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F9.4-array-traversals",{"path":594,"title":595,"stem":596},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F5-implementing-array-algorithms","Implementing Array Algorithms — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F9.5-implementing-array-algorithms",{"path":598,"title":599,"stem":600},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F6-arraylist-traversals","ArrayList Traversals — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F9.6-arraylist-traversals",{"path":602,"title":603,"stem":604},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F7-implementing-arraylist-algorithms","Implementing ArrayList Algorithms — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F9.7-implementing-arraylist-algorithms",{"path":606,"title":607,"stem":608},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F8-using-text-files","Using Text Files — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch09-storing-data\u002F9.8-using-text-files",{"path":610,"title":611,"stem":612},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch10-2d-arrays\u002F1-2d-array-creation-and-access","2D Array Creation and Access — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch10-2d-arrays\u002F10.1-2d-array-creation-and-access",{"path":614,"title":615,"stem":616},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch10-2d-arrays\u002F2-2d-array-traversals-nested-loops","2D Array Traversals: Nested Loops — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch10-2d-arrays\u002F10.2-2d-array-traversals-nested-loops",{"path":618,"title":619,"stem":620},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch10-2d-arrays\u002F3-implementing-2d-array-algorithms","Implementing 2D Array Algorithms — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch10-2d-arrays\u002F10.3-implementing-2d-array-algorithms",{"path":622,"title":623,"stem":624},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch11-enums-named-choices\u002F11-enums-named-choices","Enums: Named Choices — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch11-enums-named-choices\u002F11-enums-named-choices",{"path":626,"title":627,"stem":628},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch12-exceptions-and-try-catch\u002F12-exceptions-and-try-catch","Exceptions & try\u002Fcatch — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch12-exceptions-and-try-catch\u002F12-exceptions-and-try-catch",{"path":630,"title":631,"stem":632},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch13-common-gotchas\u002F13-common-gotchas","Common Gotchas — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch13-common-gotchas\u002F13-common-gotchas",{"path":634,"title":635,"stem":636},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch15-advanced-collections\u002F15-advanced-collections","Advanced Collections (Set\u002FQueue\u002FMap) — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch15-advanced-collections\u002F15-advanced-collections",{"path":638,"title":639,"stem":640},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch16-writing-your-own-generics\u002F16-writing-your-own-generics","Writing Your Own Generics — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch16-writing-your-own-generics\u002F16-writing-your-own-generics",{"path":642,"title":643,"stem":644},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch17-inheritance-and-abstractions\u002F1-inheritance-superclass-subclass","Inheritance, Superclass, Subclass — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch17-inheritance-and-abstractions\u002F17.1-inheritance-superclass-subclass",{"path":646,"title":647,"stem":648},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch17-inheritance-and-abstractions\u002F2-inheritance-and-constructors","Inheritance and Constructors — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch17-inheritance-and-abstractions\u002F17.2-inheritance-and-constructors",{"path":650,"title":651,"stem":652},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch17-inheritance-and-abstractions\u002F3-inheritance-hierarchies","Inheritance Hierarchies — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch17-inheritance-and-abstractions\u002F17.3-inheritance-hierarchies",{"path":654,"title":655,"stem":656},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch17-inheritance-and-abstractions\u002F4-object-superclass","Object Superclass — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch17-inheritance-and-abstractions\u002F17.4-object-superclass",{"path":658,"title":659,"stem":660},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch17-inheritance-and-abstractions\u002F5-abstract-classes-and-methods","Abstract Classes and Methods — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch17-inheritance-and-abstractions\u002F17.5-abstract-classes-and-methods",{"path":662,"title":663,"stem":664},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch18-polymorphism-many-forms\u002F1-overriding-methods","Overriding Methods — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch18-polymorphism-many-forms\u002F18.1-overriding-methods",{"path":666,"title":667,"stem":668},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch18-polymorphism-many-forms\u002F2-super-keyword","super Keyword — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch18-polymorphism-many-forms\u002F18.2-super-keyword",{"path":670,"title":671,"stem":672},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch18-polymorphism-many-forms\u002F3-polymorphism","Polymorphism — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch18-polymorphism-many-forms\u002F18.3-polymorphism",{"path":674,"title":675,"stem":676},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch19-interfaces-as-contracts\u002F19-interfaces-as-contracts","Interfaces as Contracts — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch19-interfaces-as-contracts\u002F19-interfaces-as-contracts",{"path":678,"title":679,"stem":680},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch19-interfaces-as-contracts\u002F1-lambdas-and-method-references","Lambdas & Method References — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch19-interfaces-as-contracts\u002F19.1-lambdas-and-method-references",{"path":682,"title":683,"stem":684},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch20-the-io-layer-pattern\u002F20-the-io-layer-pattern","The IO-Layer Pattern — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch20-the-io-layer-pattern\u002F20-the-io-layer-pattern",{"path":686,"title":687,"stem":688},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch21-static-factories\u002F21-static-factories","Static Factories — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch21-static-factories\u002F21-static-factories",{"path":690,"title":691,"stem":692},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch22-the-builder-pattern\u002F22-the-builder-pattern","The Builder Pattern — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch22-the-builder-pattern\u002F22-the-builder-pattern",{"path":694,"title":695,"stem":696},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch23-encapsulation-and-final\u002F1-scope-and-access","Access, final, and Immutability — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch23-encapsulation-and-final\u002F23.1-scope-and-access",{"path":698,"title":699,"stem":700},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch24-optional-avoiding-null-pointer-exceptions\u002F24-optional-avoiding-null-pointer-exceptions","Optional: Avoiding Null Pointer Exceptions — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch24-optional-avoiding-null-pointer-exceptions\u002F24-optional-avoiding-null-pointer-exceptions",{"path":702,"title":703,"stem":704},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F1-what-is-command-based-programming","What Is Command-Based Programming? — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F25.1-what-is-command-based-programming",{"path":706,"title":707,"stem":708},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F2-commands-and-command-compositions","Commands & Command Compositions — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F25.2-commands-and-command-compositions",{"path":710,"title":711,"stem":712},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F3-the-command-scheduler","The Command Scheduler — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F25.3-the-command-scheduler",{"path":714,"title":715,"stem":716},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F4-state-machines-logic","State Machines: Logic — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F25.4-state-machines-logic",{"path":718,"title":719,"stem":720},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F5-managing-transitions","Managing Transitions — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F25.5-managing-transitions",{"path":722,"title":723,"stem":724},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F6-binding-commands-to-triggers","Binding Commands to Triggers — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F25.6-binding-commands-to-triggers",{"path":726,"title":727,"stem":728},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F7-structuring-a-command-based-robot-project","Structuring a Command-Based Robot Project — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch25-command-based-programming\u002F25.7-structuring-a-command-based-robot-project",{"path":730,"title":731,"stem":732},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch26-architecture-takeaways\u002F26-architecture-takeaways","Architecture Takeaways — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch26-architecture-takeaways\u002F26-architecture-takeaways",{"path":734,"title":735,"stem":736},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch27-program-design-and-abstraction\u002F1-abstraction-and-program-design","Abstraction and Program Design — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch27-program-design-and-abstraction\u002F27.1-abstraction-and-program-design",{"path":738,"title":739,"stem":740},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch28-algorithms-searching-sorting-recursion\u002F1-searching-algorithms","Searching Algorithms — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch28-algorithms-searching-sorting-recursion\u002F28.1-searching-algorithms",{"path":742,"title":743,"stem":744},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch28-algorithms-searching-sorting-recursion\u002F2-sorting-algorithms","Sorting Algorithms — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch28-algorithms-searching-sorting-recursion\u002F28.2-sorting-algorithms",{"path":746,"title":747,"stem":748},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch28-algorithms-searching-sorting-recursion\u002F3-recursion","Recursion — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch28-algorithms-searching-sorting-recursion\u002F28.3-recursion",{"path":750,"title":751,"stem":752},"\u002Fshockwave-curriculum\u002Fexamples\u002Fch28-algorithms-searching-sorting-recursion\u002F4-recursive-searching-and-sorting","Recursive Searching and Sorting — Worked Example","shockwave-curriculum\u002Fexamples\u002Fch28-algorithms-searching-sorting-recursion\u002F28.4-recursive-searching-and-sorting",[754,758,762,766,770,774,778,782,786,790,794,798,802,806,810,814,818,822,826,830,834,838,842,846,850,854,858,862,866,870,874,878,882,886,890,894,898,902,906,910,914,918,922,926,930,934,938,942,946,950,954,958,962,966,970,974,978,982,986,990,994,998,1002,1006,1010,1014,1018,1022,1026,1030,1034,1038,1042,1046,1050,1054,1058,1062,1066],{"path":755,"title":756,"stem":757},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch01-why-java-for-frc\u002F2-intro-to-algorithms-programming-and-compilers","Intro to Algorithms, Programming and Compilers — Exercises","shockwave-curriculum\u002Fexercises\u002Fch01-why-java-for-frc\u002F1.2-intro-to-algorithms-programming-and-compilers",{"path":759,"title":760,"stem":761},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch02-variables-and-types\u002F1-variables-and-data-types","Variables & Data Types — Exercises","shockwave-curriculum\u002Fexercises\u002Fch02-variables-and-types\u002F2.1-variables-and-data-types",{"path":763,"title":764,"stem":765},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch02-variables-and-types\u002F2-expressions-and-output","Expressions & Output — Exercises","shockwave-curriculum\u002Fexercises\u002Fch02-variables-and-types\u002F2.2-expressions-and-output",{"path":767,"title":768,"stem":769},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch02-variables-and-types\u002F3-assignment-and-input","Assignment & Input — Exercises","shockwave-curriculum\u002Fexercises\u002Fch02-variables-and-types\u002F2.3-assignment-and-input",{"path":771,"title":772,"stem":773},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch02-variables-and-types\u002F4-casting-and-ranges-of-values","Casting & Ranges of Values — Exercises","shockwave-curriculum\u002Fexercises\u002Fch02-variables-and-types\u002F2.4-casting-and-ranges-of-values",{"path":775,"title":776,"stem":777},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch02-variables-and-types\u002F5-compound-assignment-operators","Compound Assignment Operators — Exercises","shockwave-curriculum\u002Fexercises\u002Fch02-variables-and-types\u002F2.5-compound-assignment-operators",{"path":779,"title":780,"stem":781},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch03-apis-libraries-and-documentation\u002F1-apis-and-libraries","APIs and Libraries — Exercises","shockwave-curriculum\u002Fexercises\u002Fch03-apis-libraries-and-documentation\u002F3.1-apis-and-libraries",{"path":783,"title":784,"stem":785},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch03-apis-libraries-and-documentation\u002F2-documentation-with-comments-and-preconditions","Documentation with Comments and Preconditions — Exercises","shockwave-curriculum\u002Fexercises\u002Fch03-apis-libraries-and-documentation\u002F3.2-documentation-with-comments-and-preconditions",{"path":787,"title":788,"stem":789},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch03-apis-libraries-and-documentation\u002F3-packages-and-imports","Packages & Imports — Exercises","shockwave-curriculum\u002Fexercises\u002Fch03-apis-libraries-and-documentation\u002F3.3-packages-and-imports",{"path":791,"title":792,"stem":793},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch04-using-objects-and-calling-methods\u002F1-methods-signatures-and-parameters","Methods, Signatures & Parameters — Exercises","shockwave-curriculum\u002Fexercises\u002Fch04-using-objects-and-calling-methods\u002F4.1-methods-signatures-and-parameters",{"path":795,"title":796,"stem":797},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch04-using-objects-and-calling-methods\u002F2-calling-class-methods","Calling Class Methods — Exercises","shockwave-curriculum\u002Fexercises\u002Fch04-using-objects-and-calling-methods\u002F4.2-calling-class-methods",{"path":799,"title":800,"stem":801},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch04-using-objects-and-calling-methods\u002F3-using-the-math-class","Using the Math Class — Exercises","shockwave-curriculum\u002Fexercises\u002Fch04-using-objects-and-calling-methods\u002F4.3-using-the-math-class",{"path":803,"title":804,"stem":805},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch04-using-objects-and-calling-methods\u002F4-objects-instances-of-classes","Objects — Instances of Classes — Exercises","shockwave-curriculum\u002Fexercises\u002Fch04-using-objects-and-calling-methods\u002F4.4-objects-instances-of-classes",{"path":807,"title":808,"stem":809},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch04-using-objects-and-calling-methods\u002F5-creating-and-initializing-objects-constructors","Creating & Initializing Objects: Constructors — Exercises","shockwave-curriculum\u002Fexercises\u002Fch04-using-objects-and-calling-methods\u002F4.5-creating-and-initializing-objects-constructors",{"path":811,"title":812,"stem":813},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch04-using-objects-and-calling-methods\u002F6-calling-instance-methods","Calling Instance Methods — Exercises","shockwave-curriculum\u002Fexercises\u002Fch04-using-objects-and-calling-methods\u002F4.6-calling-instance-methods",{"path":815,"title":816,"stem":817},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F1-5.2-if-statements-and-for-loops","if Statements & For Loops — Exercises","shockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F5.1-5.2-if-statements-and-for-loops",{"path":819,"title":820,"stem":821},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F10-nested-iteration","Nested Iteration — Exercises","shockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F5.10-nested-iteration",{"path":823,"title":824,"stem":825},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F11-informal-runtime-analysis-of-loops","Informal Runtime Analysis of Loops — Exercises","shockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F5.11-informal-runtime-analysis-of-loops",{"path":827,"title":828,"stem":829},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F12-switch-statements-and-expressions","switch Statements and Expressions — Exercises","shockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F5.12-switch-statements-and-expressions",{"path":831,"title":832,"stem":833},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F3-algorithms-with-selection-and-repetition","Algorithms with Selection and Repetition — Exercises","shockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F5.3-algorithms-with-selection-and-repetition",{"path":835,"title":836,"stem":837},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F4-boolean-expressions","Boolean Expressions — Exercises","shockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F5.4-boolean-expressions",{"path":839,"title":840,"stem":841},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F5-nested-if-statements","Nested if Statements — Exercises","shockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F5.5-nested-if-statements",{"path":843,"title":844,"stem":845},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F6-compound-boolean-expressions","Compound Boolean Expressions — Exercises","shockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F5.6-compound-boolean-expressions",{"path":847,"title":848,"stem":849},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F7-comparing-boolean-expressions-de-morgans-laws","Comparing Boolean Expressions (De Morgan's Laws) — Exercises","shockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F5.7-comparing-boolean-expressions-de-morgans-laws",{"path":851,"title":852,"stem":853},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F8-while-loops","While Loops — Exercises","shockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F5.8-while-loops",{"path":855,"title":856,"stem":857},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F9-implementing-selection-and-iteration-algorithms","Implementing Selection and Iteration Algorithms — Exercises","shockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F5.9-implementing-selection-and-iteration-algorithms",{"path":859,"title":860,"stem":861},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch06-strings\u002F1-strings","Strings — Exercises","shockwave-curriculum\u002Fexercises\u002Fch06-strings\u002F6.1-strings",{"path":863,"title":864,"stem":865},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch06-strings\u002F2-string-algorithms","String Algorithms — Exercises","shockwave-curriculum\u002Fexercises\u002Fch06-strings\u002F6.2-string-algorithms",{"path":867,"title":868,"stem":869},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch07-the-class-blueprint\u002F1-anatomy-of-a-java-class","Anatomy of a Java Class — Exercises","shockwave-curriculum\u002Fexercises\u002Fch07-the-class-blueprint\u002F7.1-anatomy-of-a-java-class",{"path":871,"title":872,"stem":873},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch07-the-class-blueprint\u002F2-methods-how-to-write-them","Methods: How to Write Them — Exercises","shockwave-curriculum\u002Fexercises\u002Fch07-the-class-blueprint\u002F7.2-methods-how-to-write-them",{"path":875,"title":876,"stem":877},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch07-the-class-blueprint\u002F3-methods-passing-and-returning-references-of-an-object","Methods: Passing & Returning References of an Object — Exercises","shockwave-curriculum\u002Fexercises\u002Fch07-the-class-blueprint\u002F7.3-methods-passing-and-returning-references-of-an-object",{"path":879,"title":880,"stem":881},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch07-the-class-blueprint\u002F4-class-static-variables-and-methods","Class (static) Variables & Methods — Exercises","shockwave-curriculum\u002Fexercises\u002Fch07-the-class-blueprint\u002F7.4-class-static-variables-and-methods",{"path":883,"title":884,"stem":885},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch08-constructors-and-this\u002F1-8.2-constructors-and-this","Constructors & \"this\" — Exercises","shockwave-curriculum\u002Fexercises\u002Fch08-constructors-and-this\u002F8.1-8.2-constructors-and-this",{"path":887,"title":888,"stem":889},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F1-array-creation-and-access","Array Creation and Access — Exercises","shockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F9.1-array-creation-and-access",{"path":891,"title":892,"stem":893},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F2-arraylist-and-its-methods","ArrayList and its Methods — Exercises","shockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F9.2-arraylist-and-its-methods",{"path":895,"title":896,"stem":897},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F3-optional-hashmap-dictionary-data-structure","HashMap (Dictionary) Data Structure — Exercises","shockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F9.3-optional-hashmap-dictionary-data-structure",{"path":899,"title":900,"stem":901},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F4-array-traversals","Array Traversals — Exercises","shockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F9.4-array-traversals",{"path":903,"title":904,"stem":905},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F5-implementing-array-algorithms","Implementing Array Algorithms — Exercises","shockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F9.5-implementing-array-algorithms",{"path":907,"title":908,"stem":909},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F6-arraylist-traversals","ArrayList Traversals — Exercises","shockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F9.6-arraylist-traversals",{"path":911,"title":912,"stem":913},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F7-implementing-arraylist-algorithms","Implementing ArrayList Algorithms — Exercises","shockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F9.7-implementing-arraylist-algorithms",{"path":915,"title":916,"stem":917},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F8-using-text-files","Using Text Files — Exercises","shockwave-curriculum\u002Fexercises\u002Fch09-storing-data\u002F9.8-using-text-files",{"path":919,"title":920,"stem":921},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch10-2d-arrays\u002F1-2d-array-creation-and-access","2D Array Creation and Access — Exercises","shockwave-curriculum\u002Fexercises\u002Fch10-2d-arrays\u002F10.1-2d-array-creation-and-access",{"path":923,"title":924,"stem":925},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch10-2d-arrays\u002F2-2d-array-traversals-nested-loops","2D Array Traversals: Nested Loops — Exercises","shockwave-curriculum\u002Fexercises\u002Fch10-2d-arrays\u002F10.2-2d-array-traversals-nested-loops",{"path":927,"title":928,"stem":929},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch10-2d-arrays\u002F3-implementing-2d-array-algorithms","Implementing 2D Array Algorithms — Exercises","shockwave-curriculum\u002Fexercises\u002Fch10-2d-arrays\u002F10.3-implementing-2d-array-algorithms",{"path":931,"title":932,"stem":933},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch11-enums-named-choices\u002F11-enums-named-choices","Enums: Named Choices — Exercises","shockwave-curriculum\u002Fexercises\u002Fch11-enums-named-choices\u002F11-enums-named-choices",{"path":935,"title":936,"stem":937},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch12-exceptions-and-try-catch\u002F12-exceptions-and-try-catch","Exceptions & try\u002Fcatch — Exercises","shockwave-curriculum\u002Fexercises\u002Fch12-exceptions-and-try-catch\u002F12-exceptions-and-try-catch",{"path":939,"title":940,"stem":941},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch13-common-gotchas\u002F13-common-gotchas","Common Gotchas — Exercises","shockwave-curriculum\u002Fexercises\u002Fch13-common-gotchas\u002F13-common-gotchas",{"path":943,"title":944,"stem":945},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch14-why-design-patterns\u002F14-why-design-patterns","Why Design Patterns? — Exercises","shockwave-curriculum\u002Fexercises\u002Fch14-why-design-patterns\u002F14-why-design-patterns",{"path":947,"title":948,"stem":949},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch15-advanced-collections\u002F15-advanced-collections","Advanced Collections (Set\u002FQueue\u002FMap) — Exercises","shockwave-curriculum\u002Fexercises\u002Fch15-advanced-collections\u002F15-advanced-collections",{"path":951,"title":952,"stem":953},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch16-writing-your-own-generics\u002F16-writing-your-own-generics","Writing Your Own Generics — Exercises","shockwave-curriculum\u002Fexercises\u002Fch16-writing-your-own-generics\u002F16-writing-your-own-generics",{"path":955,"title":956,"stem":957},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch17-inheritance-and-abstractions\u002F1-inheritance-superclass-subclass","Inheritance, Superclass, Subclass — Exercises","shockwave-curriculum\u002Fexercises\u002Fch17-inheritance-and-abstractions\u002F17.1-inheritance-superclass-subclass",{"path":959,"title":960,"stem":961},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch17-inheritance-and-abstractions\u002F2-inheritance-and-constructors","Inheritance and Constructors — Exercises","shockwave-curriculum\u002Fexercises\u002Fch17-inheritance-and-abstractions\u002F17.2-inheritance-and-constructors",{"path":963,"title":964,"stem":965},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch17-inheritance-and-abstractions\u002F3-inheritance-hierarchies","Inheritance Hierarchies — Exercises","shockwave-curriculum\u002Fexercises\u002Fch17-inheritance-and-abstractions\u002F17.3-inheritance-hierarchies",{"path":967,"title":968,"stem":969},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch17-inheritance-and-abstractions\u002F4-object-superclass","Object Superclass — Exercises","shockwave-curriculum\u002Fexercises\u002Fch17-inheritance-and-abstractions\u002F17.4-object-superclass",{"path":971,"title":972,"stem":973},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch17-inheritance-and-abstractions\u002F5-abstract-classes-and-methods","Abstract Classes and Methods — Exercises","shockwave-curriculum\u002Fexercises\u002Fch17-inheritance-and-abstractions\u002F17.5-abstract-classes-and-methods",{"path":975,"title":976,"stem":977},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch18-polymorphism-many-forms\u002F1-overriding-methods","Overriding Methods — Exercises","shockwave-curriculum\u002Fexercises\u002Fch18-polymorphism-many-forms\u002F18.1-overriding-methods",{"path":979,"title":980,"stem":981},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch18-polymorphism-many-forms\u002F2-super-keyword","super Keyword — Exercises","shockwave-curriculum\u002Fexercises\u002Fch18-polymorphism-many-forms\u002F18.2-super-keyword",{"path":983,"title":984,"stem":985},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch18-polymorphism-many-forms\u002F3-polymorphism","Polymorphism — Exercises","shockwave-curriculum\u002Fexercises\u002Fch18-polymorphism-many-forms\u002F18.3-polymorphism",{"path":987,"title":988,"stem":989},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch19-interfaces-as-contracts\u002F19-interfaces-as-contracts","Interfaces as Contracts — Exercises","shockwave-curriculum\u002Fexercises\u002Fch19-interfaces-as-contracts\u002F19-interfaces-as-contracts",{"path":991,"title":992,"stem":993},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch19-interfaces-as-contracts\u002F1-lambdas-and-method-references","Lambdas & Method References — Exercises","shockwave-curriculum\u002Fexercises\u002Fch19-interfaces-as-contracts\u002F19.1-lambdas-and-method-references",{"path":995,"title":996,"stem":997},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch20-the-io-layer-pattern\u002F20-the-io-layer-pattern","The IO-Layer Pattern — Exercises","shockwave-curriculum\u002Fexercises\u002Fch20-the-io-layer-pattern\u002F20-the-io-layer-pattern",{"path":999,"title":1000,"stem":1001},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch21-static-factories\u002F21-static-factories","Static Factories — Exercises","shockwave-curriculum\u002Fexercises\u002Fch21-static-factories\u002F21-static-factories",{"path":1003,"title":1004,"stem":1005},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch22-the-builder-pattern\u002F22-the-builder-pattern","The Builder Pattern — Exercises","shockwave-curriculum\u002Fexercises\u002Fch22-the-builder-pattern\u002F22-the-builder-pattern",{"path":1007,"title":1008,"stem":1009},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch23-encapsulation-and-final\u002F1-scope-and-access","Access, final, and Immutability — Exercises","shockwave-curriculum\u002Fexercises\u002Fch23-encapsulation-and-final\u002F23.1-scope-and-access",{"path":1011,"title":1012,"stem":1013},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch24-optional-avoiding-null-pointer-exceptions\u002F24-optional-avoiding-null-pointer-exceptions","Optional: Avoiding Null Pointer Exceptions — Exercises","shockwave-curriculum\u002Fexercises\u002Fch24-optional-avoiding-null-pointer-exceptions\u002F24-optional-avoiding-null-pointer-exceptions",{"path":1015,"title":1016,"stem":1017},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F1-what-is-command-based-programming","What Is Command-Based Programming? — Exercises","shockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F25.1-what-is-command-based-programming",{"path":1019,"title":1020,"stem":1021},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F2-commands-and-command-compositions","Commands & Command Compositions — Exercises","shockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F25.2-commands-and-command-compositions",{"path":1023,"title":1024,"stem":1025},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F3-the-command-scheduler","The Command Scheduler — Exercises","shockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F25.3-the-command-scheduler",{"path":1027,"title":1028,"stem":1029},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F4-state-machines-logic","State Machines: Logic — Exercises","shockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F25.4-state-machines-logic",{"path":1031,"title":1032,"stem":1033},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F5-managing-transitions","Managing Transitions — Exercises","shockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F25.5-managing-transitions",{"path":1035,"title":1036,"stem":1037},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F6-binding-commands-to-triggers","Binding Commands to Triggers — Exercises","shockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F25.6-binding-commands-to-triggers",{"path":1039,"title":1040,"stem":1041},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F7-structuring-a-command-based-robot-project","Structuring a Command-Based Robot Project — Exercises","shockwave-curriculum\u002Fexercises\u002Fch25-command-based-programming\u002F25.7-structuring-a-command-based-robot-project",{"path":1043,"title":1044,"stem":1045},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch26-architecture-takeaways\u002F26-architecture-takeaways","Architecture Takeaways — Exercises","shockwave-curriculum\u002Fexercises\u002Fch26-architecture-takeaways\u002F26-architecture-takeaways",{"path":1047,"title":1048,"stem":1049},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch27-program-design-and-abstraction\u002F1-abstraction-and-program-design","Abstraction and Program Design — Exercises","shockwave-curriculum\u002Fexercises\u002Fch27-program-design-and-abstraction\u002F27.1-abstraction-and-program-design",{"path":1051,"title":1052,"stem":1053},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch27-program-design-and-abstraction\u002F2-impact-of-program-design","Impact of Program Design — Exercises","shockwave-curriculum\u002Fexercises\u002Fch27-program-design-and-abstraction\u002F27.2-impact-of-program-design",{"path":1055,"title":1056,"stem":1057},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch28-algorithms-searching-sorting-recursion\u002F1-searching-algorithms","Searching Algorithms — Exercises","shockwave-curriculum\u002Fexercises\u002Fch28-algorithms-searching-sorting-recursion\u002F28.1-searching-algorithms",{"path":1059,"title":1060,"stem":1061},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch28-algorithms-searching-sorting-recursion\u002F2-sorting-algorithms","Sorting Algorithms — Exercises","shockwave-curriculum\u002Fexercises\u002Fch28-algorithms-searching-sorting-recursion\u002F28.2-sorting-algorithms",{"path":1063,"title":1064,"stem":1065},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch28-algorithms-searching-sorting-recursion\u002F3-recursion","Recursion — Exercises","shockwave-curriculum\u002Fexercises\u002Fch28-algorithms-searching-sorting-recursion\u002F28.3-recursion",{"path":1067,"title":1068,"stem":1069},"\u002Fshockwave-curriculum\u002Fexercises\u002Fch28-algorithms-searching-sorting-recursion\u002F4-recursive-searching-and-sorting","Recursive Searching and Sorting — Exercises","shockwave-curriculum\u002Fexercises\u002Fch28-algorithms-searching-sorting-recursion\u002F28.4-recursive-searching-and-sorting",{"id":1071,"title":94,"body":1072,"description":1099,"extension":1643,"meta":1644,"navigation":1226,"path":93,"seo":1647,"stem":95,"__hash__":1648},"lessons\u002Fshockwave-curriculum\u002Flessons\u002Fch05-control-structures\u002F5.5-nested-if-statements.md",{"type":1073,"value":1074,"toc":1634},"minimark",[1075,1079,1084,1093,1172,1179,1183,1197,1242,1246,1259,1289,1296,1348,1352,1363,1409,1421,1425,1447,1492,1495,1504,1520,1524,1582,1586,1619,1630],[1076,1077,94],"h1",{"id":1078},"nested-if-statements",[1080,1081,1083],"h2",{"id":1082},"multiway-selection-with-else-if","Multiway Selection with else if",[1085,1086,1087,1088,1092],"p",{},"Chain ",[1089,1090,1091],"code",{},"else if"," to pick between three or more paths — only the first true branch runs:",[1094,1095,1100],"pre",{"className":1096,"code":1097,"language":1098,"meta":1099,"style":1099},"language-java shiki shiki-themes github-light github-dark","if (distance \u003C 1.0)\n{\n    zone = \"CLOSE\";\n}\nelse if (distance \u003C 3.0)\n{\n    zone = \"MID\";\n}\nelse\n{\n    zone = \"FAR\";\n}\n","java","",[1089,1101,1102,1110,1116,1122,1128,1134,1139,1145,1150,1156,1161,1167],{"__ignoreMap":1099},[1103,1104,1107],"span",{"class":1105,"line":1106},"line",1,[1103,1108,1109],{},"if (distance \u003C 1.0)\n",[1103,1111,1113],{"class":1105,"line":1112},2,[1103,1114,1115],{},"{\n",[1103,1117,1119],{"class":1105,"line":1118},3,[1103,1120,1121],{},"    zone = \"CLOSE\";\n",[1103,1123,1125],{"class":1105,"line":1124},4,[1103,1126,1127],{},"}\n",[1103,1129,1131],{"class":1105,"line":1130},5,[1103,1132,1133],{},"else if (distance \u003C 3.0)\n",[1103,1135,1137],{"class":1105,"line":1136},6,[1103,1138,1115],{},[1103,1140,1142],{"class":1105,"line":1141},7,[1103,1143,1144],{},"    zone = \"MID\";\n",[1103,1146,1148],{"class":1105,"line":1147},8,[1103,1149,1127],{},[1103,1151,1153],{"class":1105,"line":1152},9,[1103,1154,1155],{},"else\n",[1103,1157,1159],{"class":1105,"line":1158},10,[1103,1160,1115],{},[1103,1162,1164],{"class":1105,"line":1163},11,[1103,1165,1166],{},"    zone = \"FAR\";\n",[1103,1168,1170],{"class":1105,"line":1169},12,[1103,1171,1127],{},[1085,1173,1174,1175,1178],{},"A trailing plain ",[1089,1176,1177],{},"else"," (no condition) catches everything not already matched — it's optional, but leaving it off means \"do nothing\" is a real possible outcome.",[1080,1180,1182],{"id":1181},"chained-vs-separate-ifs","Chained vs. Separate ifs",[1085,1184,1185,1187,1188,1191,1192,1196],{},[1089,1186,1091],{}," connects the branches together — only one of them ever runs. Writing separate, unconnected ",[1089,1189,1190],{},"if"," statements instead is a different (and often wrong) thing entirely, because ",[1193,1194,1195],"em",{},"all"," of them get checked independently:",[1094,1198,1200],{"className":1096,"code":1199,"language":1098,"meta":1099,"style":1099},"\u002F\u002F Connected — only one branch runs\nif (score >= 90) { grade = \"A\"; }\nelse if (score >= 80) { grade = \"B\"; }\nelse { grade = \"C\"; }\n\n\u002F\u002F NOT connected — multiple could run, overwriting each other\nif (score >= 90) { grade = \"A\"; }\nif (score >= 80) { grade = \"B\"; } \u002F\u002F a 95 would hit this too, overwriting \"A\" with \"B\"!\n",[1089,1201,1202,1207,1212,1217,1222,1228,1233,1237],{"__ignoreMap":1099},[1103,1203,1204],{"class":1105,"line":1106},[1103,1205,1206],{},"\u002F\u002F Connected — only one branch runs\n",[1103,1208,1209],{"class":1105,"line":1112},[1103,1210,1211],{},"if (score >= 90) { grade = \"A\"; }\n",[1103,1213,1214],{"class":1105,"line":1118},[1103,1215,1216],{},"else if (score >= 80) { grade = \"B\"; }\n",[1103,1218,1219],{"class":1105,"line":1124},[1103,1220,1221],{},"else { grade = \"C\"; }\n",[1103,1223,1224],{"class":1105,"line":1130},[1103,1225,1227],{"emptyLinePlaceholder":1226},true,"\n",[1103,1229,1230],{"class":1105,"line":1136},[1103,1231,1232],{},"\u002F\u002F NOT connected — multiple could run, overwriting each other\n",[1103,1234,1235],{"class":1105,"line":1141},[1103,1236,1211],{},[1103,1238,1239],{"class":1105,"line":1147},[1103,1240,1241],{},"if (score >= 80) { grade = \"B\"; } \u002F\u002F a 95 would hit this too, overwriting \"A\" with \"B\"!\n",[1080,1243,1245],{"id":1244},"the-dangling-else","The Dangling Else",[1085,1247,1248,1249,1251,1252,1255,1256,1258],{},"When ifs are nested without braces, an ",[1089,1250,1177],{}," always attaches to the ",[1193,1253,1254],{},"closest"," unmatched ",[1089,1257,1190],{}," — regardless of indentation:",[1094,1260,1262],{"className":1096,"code":1261,"language":1098,"meta":1099,"style":1099},"if (sunny)\n    if (hot)\n        goToBeach();\nelse \u002F\u002F looks like it belongs to sunny, but it belongs to hot\n    bringUmbrella();\n",[1089,1263,1264,1269,1274,1279,1284],{"__ignoreMap":1099},[1103,1265,1266],{"class":1105,"line":1106},[1103,1267,1268],{},"if (sunny)\n",[1103,1270,1271],{"class":1105,"line":1112},[1103,1272,1273],{},"    if (hot)\n",[1103,1275,1276],{"class":1105,"line":1118},[1103,1277,1278],{},"        goToBeach();\n",[1103,1280,1281],{"class":1105,"line":1124},[1103,1282,1283],{},"else \u002F\u002F looks like it belongs to sunny, but it belongs to hot\n",[1103,1285,1286],{"class":1105,"line":1130},[1103,1287,1288],{},"    bringUmbrella();\n",[1085,1290,1291,1292,1295],{},"This brings an umbrella when it's sunny but ",[1193,1293,1294],{},"not"," hot — and does nothing at all when it isn't sunny. If that's not what you meant, braces fix it:",[1094,1297,1299],{"className":1096,"code":1298,"language":1098,"meta":1099,"style":1099},"if (sunny)\n{\n    if (hot)\n    {\n        goToBeach();\n    }\n}\nelse \u002F\u002F now belongs to the OUTER if, thanks to the braces\n{\n    bringUmbrella();\n}\n",[1089,1300,1301,1305,1309,1313,1318,1322,1327,1331,1336,1340,1344],{"__ignoreMap":1099},[1103,1302,1303],{"class":1105,"line":1106},[1103,1304,1268],{},[1103,1306,1307],{"class":1105,"line":1112},[1103,1308,1115],{},[1103,1310,1311],{"class":1105,"line":1118},[1103,1312,1273],{},[1103,1314,1315],{"class":1105,"line":1124},[1103,1316,1317],{},"    {\n",[1103,1319,1320],{"class":1105,"line":1130},[1103,1321,1278],{},[1103,1323,1324],{"class":1105,"line":1136},[1103,1325,1326],{},"    }\n",[1103,1328,1329],{"class":1105,"line":1141},[1103,1330,1127],{},[1103,1332,1333],{"class":1105,"line":1147},[1103,1334,1335],{},"else \u002F\u002F now belongs to the OUTER if, thanks to the braces\n",[1103,1337,1338],{"class":1105,"line":1152},[1103,1339,1115],{},[1103,1341,1342],{"class":1105,"line":1158},[1103,1343,1288],{},[1103,1345,1346],{"class":1105,"line":1163},[1103,1347,1127],{},[1080,1349,1351],{"id":1350},"a-missing-else-can-leave-a-variable-unassigned","A Missing else Can Leave a Variable Unassigned",[1085,1353,1354,1355,1358,1359,1362],{},"Java requires a local variable (one declared inside a method, like ",[1089,1356,1357],{},"tier"," below) to be ",[1193,1360,1361],{},"definitely assigned"," before it's read. If no branch is guaranteed to run, the compiler won't let you read it afterward:",[1094,1364,1366],{"className":1096,"code":1365,"language":1098,"meta":1099,"style":1099},"String tier; \u002F\u002F local variable, no initial value\n\nif (score >= 8)\n{\n    tier = \"ELITE\";\n}\n\u002F\u002F no else — if score \u003C 8, tier is never assigned\n\nSystem.out.println(tier); \u002F\u002F won't compile: tier might not be assigned\n",[1089,1367,1368,1373,1377,1382,1386,1391,1395,1400,1404],{"__ignoreMap":1099},[1103,1369,1370],{"class":1105,"line":1106},[1103,1371,1372],{},"String tier; \u002F\u002F local variable, no initial value\n",[1103,1374,1375],{"class":1105,"line":1112},[1103,1376,1227],{"emptyLinePlaceholder":1226},[1103,1378,1379],{"class":1105,"line":1118},[1103,1380,1381],{},"if (score >= 8)\n",[1103,1383,1384],{"class":1105,"line":1124},[1103,1385,1115],{},[1103,1387,1388],{"class":1105,"line":1130},[1103,1389,1390],{},"    tier = \"ELITE\";\n",[1103,1392,1393],{"class":1105,"line":1136},[1103,1394,1127],{},[1103,1396,1397],{"class":1105,"line":1141},[1103,1398,1399],{},"\u002F\u002F no else — if score \u003C 8, tier is never assigned\n",[1103,1401,1402],{"class":1105,"line":1147},[1103,1403,1227],{"emptyLinePlaceholder":1226},[1103,1405,1406],{"class":1105,"line":1152},[1103,1407,1408],{},"System.out.println(tier); \u002F\u002F won't compile: tier might not be assigned\n",[1085,1410,1411,1412,1414,1415,1417,1418,1420],{},"Adding a trailing ",[1089,1413,1177],{}," that assigns ",[1089,1416,1357],{}," (or giving ",[1089,1419,1357],{}," a starting value) fixes it.",[1080,1422,1424],{"id":1423},"choosing-between-two-values-with","Choosing Between Two Values with ?:",[1085,1426,1427,1428,1430,1431,1433,1434,1437,1438,1441,1442,1430,1444,1446],{},"When an ",[1089,1429,1190],{},"\u002F",[1089,1432,1177],{}," exists only to pick one of two values for the same variable, the conditional operator ",[1089,1435,1436],{},"?:"," (often called the ",[1193,1439,1440],{},"ternary"," operator, because it has three parts) does it in a single expression. This ",[1089,1443,1190],{},[1089,1445,1177],{},":",[1094,1448,1450],{"className":1096,"code":1449,"language":1098,"meta":1099,"style":1099},"double speed;\nif (boosted)\n{\n    speed = 1.0;\n}\nelse\n{\n    speed = 0.5;\n}\n",[1089,1451,1452,1457,1462,1466,1471,1475,1479,1483,1488],{"__ignoreMap":1099},[1103,1453,1454],{"class":1105,"line":1106},[1103,1455,1456],{},"double speed;\n",[1103,1458,1459],{"class":1105,"line":1112},[1103,1460,1461],{},"if (boosted)\n",[1103,1463,1464],{"class":1105,"line":1118},[1103,1465,1115],{},[1103,1467,1468],{"class":1105,"line":1124},[1103,1469,1470],{},"    speed = 1.0;\n",[1103,1472,1473],{"class":1105,"line":1130},[1103,1474,1127],{},[1103,1476,1477],{"class":1105,"line":1136},[1103,1478,1155],{},[1103,1480,1481],{"class":1105,"line":1141},[1103,1482,1115],{},[1103,1484,1485],{"class":1105,"line":1147},[1103,1486,1487],{},"    speed = 0.5;\n",[1103,1489,1490],{"class":1105,"line":1152},[1103,1491,1127],{},[1085,1493,1494],{},"does the same thing as this one line:",[1094,1496,1498],{"className":1096,"code":1497,"language":1098,"meta":1099,"style":1099},"double speed = boosted ? 1.0 : 0.5;\n",[1089,1499,1500],{"__ignoreMap":1099},[1103,1501,1502],{"class":1105,"line":1106},[1103,1503,1497],{},[1085,1505,1506,1507,1510,1511,1430,1513,1515,1516,1519],{},"Read it as ",[1089,1508,1509],{},"condition ? valueIfTrue : valueIfFalse",": Java checks the condition, then produces exactly one of the two values. Use it for short value choices; keep a regular ",[1089,1512,1190],{},[1089,1514,1177],{}," when a branch needs to ",[1193,1517,1518],{},"do"," things, not just produce a value.",[1080,1521,1523],{"id":1522},"common-pitfalls","Common Pitfalls",[1525,1526,1527,1541,1557,1569],"ul",{},[1528,1529,1530,1540],"li",{},[1531,1532,1533,1534,1536,1537,1539],"strong",{},"Using separate ",[1089,1535,1190],{},"s instead of ",[1089,1538,1091],{},"."," Separate ifs are each checked independently — a later one can silently overwrite what an earlier one just set.",[1528,1542,1543,1546,1547,1550,1551,1553,1554,1556],{},[1531,1544,1545],{},"Relying on indentation instead of braces."," Java ignores indentation entirely; only ",[1089,1548,1549],{},"{ }"," actually determines which ",[1089,1552,1190],{}," an ",[1089,1555,1177],{}," belongs to.",[1528,1558,1559,1565,1566,1568],{},[1531,1560,1561,1562,1564],{},"Skipping the trailing ",[1089,1563,1177],{}," when a local variable is only assigned inside branches."," The compiler won't let you read a local variable that isn't definitely assigned on every path — add an ",[1089,1567,1177],{},", or give the variable a starting value.",[1528,1570,1571,1574,1575,1578,1579,1581],{},[1531,1572,1573],{},"Stacking ternaries."," ",[1089,1576,1577],{},"a ? x : b ? y : z"," is legal but hard to read — for three or more choices, use an ",[1089,1580,1091],{}," chain.",[1080,1583,1585],{"id":1584},"key-takeaways","Key Takeaways",[1525,1587,1588,1593,1599,1608],{},[1528,1589,1590,1592],{},[1089,1591,1091],{}," chains pick exactly one branch — the first condition that's true, and nothing after it.",[1528,1594,1595,1596,1598],{},"Unconnected, separate ",[1089,1597,1190],{}," statements are checked independently and can overwrite each other's results.",[1528,1600,1601,1602,1604,1605,1607],{},"An ",[1089,1603,1177],{}," always attaches to the nearest unmatched ",[1089,1606,1190],{}," — braces are the only reliable way to control this.",[1528,1609,1610,1613,1614,1430,1616,1618],{},[1089,1611,1612],{},"condition ? a : b"," picks one of two values in a single expression — a compact stand-in for an ",[1089,1615,1190],{},[1089,1617,1177],{}," that only assigns.",[1085,1620,1621,1622,1625,1626,1629],{},"Derived from ",[1089,1623,1624],{},"csawesome-2026",": ",[1089,1627,1628],{},"unit-2-selection-and-iteration\u002F2.04-nested-if-statements.md"," (CSA 2.4)",[1631,1632,1633],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":1099,"searchDepth":1112,"depth":1112,"links":1635},[1636,1637,1638,1639,1640,1641,1642],{"id":1082,"depth":1112,"text":1083},{"id":1181,"depth":1112,"text":1182},{"id":1244,"depth":1112,"text":1245},{"id":1350,"depth":1112,"text":1351},{"id":1423,"depth":1112,"text":1424},{"id":1522,"depth":1112,"text":1523},{"id":1584,"depth":1112,"text":1585},"md",{"outlineRef":1645,"status":1646},"5.5 — Nested if Statements (CSA 2.4)","new — authored lesson (fuller depth than the teaser slide)",{"title":94,"description":1099},"gqggKkdOVUigyYJU9aJ637msB-3U-MaDVgtPRDQ41nc",{"id":1650,"title":531,"body":1651,"description":1099,"extension":1643,"meta":1940,"navigation":1226,"path":530,"seo":1943,"stem":532,"__hash__":1944},"examples\u002Fshockwave-curriculum\u002Fexamples\u002Fch05-control-structures\u002F5.5-nested-if-statements.md",{"type":1073,"value":1652,"toc":1929},[1653,1656,1660,1675,1679,1688,1694,1700,1779,1809,1820,1827,1833,1858,1884,1891,1907,1911,1927],[1076,1654,531],{"id":1655},"nested-if-statements-worked-example",[1080,1657,1659],{"id":1658},"problem","Problem",[1085,1661,1662,1663,1666,1667,1670,1671,1674],{},"Given the number of game pieces team 1622's robot scored in a match, print a performance tier: ",[1089,1664,1665],{},"\"ELITE\""," for 8 or more, ",[1089,1668,1669],{},"\"SOLID\""," for 5 to 7, and ",[1089,1672,1673],{},"\"DEVELOPING\""," for anything below that.",[1080,1676,1678],{"id":1677},"step-1-start-from-the-data","Step 1: Start From the Data",[1094,1680,1682],{"className":1096,"code":1681,"language":1098,"meta":1099,"style":1099},"int piecesScored = 6;\n",[1089,1683,1684],{"__ignoreMap":1099},[1103,1685,1686],{"class":1105,"line":1106},[1103,1687,1681],{},[1080,1689,1691,1692],{"id":1690},"step-2-chain-the-branches-with-else-if","Step 2: Chain the Branches with ",[1089,1693,1091],{},[1085,1695,1696,1697,1699],{},"Three tiers need three paths, and only one should ever run. Chaining ",[1089,1698,1091],{}," checks each condition in order and stops at the first true one:",[1094,1701,1703],{"className":1096,"code":1702,"language":1098,"meta":1099,"style":1099},"String tier;\n\nif (piecesScored >= 8)\n{\n    tier = \"ELITE\";\n}\nelse if (piecesScored >= 5)\n{\n    tier = \"SOLID\";\n}\nelse\n{\n    tier = \"DEVELOPING\";\n}\n\nSystem.out.println(tier);\n",[1089,1704,1705,1710,1714,1719,1723,1727,1731,1736,1740,1745,1749,1753,1757,1763,1768,1773],{"__ignoreMap":1099},[1103,1706,1707],{"class":1105,"line":1106},[1103,1708,1709],{},"String tier;\n",[1103,1711,1712],{"class":1105,"line":1112},[1103,1713,1227],{"emptyLinePlaceholder":1226},[1103,1715,1716],{"class":1105,"line":1118},[1103,1717,1718],{},"if (piecesScored >= 8)\n",[1103,1720,1721],{"class":1105,"line":1124},[1103,1722,1115],{},[1103,1724,1725],{"class":1105,"line":1130},[1103,1726,1390],{},[1103,1728,1729],{"class":1105,"line":1136},[1103,1730,1127],{},[1103,1732,1733],{"class":1105,"line":1141},[1103,1734,1735],{},"else if (piecesScored >= 5)\n",[1103,1737,1738],{"class":1105,"line":1147},[1103,1739,1115],{},[1103,1741,1742],{"class":1105,"line":1152},[1103,1743,1744],{},"    tier = \"SOLID\";\n",[1103,1746,1747],{"class":1105,"line":1158},[1103,1748,1127],{},[1103,1750,1751],{"class":1105,"line":1163},[1103,1752,1155],{},[1103,1754,1755],{"class":1105,"line":1169},[1103,1756,1115],{},[1103,1758,1760],{"class":1105,"line":1759},13,[1103,1761,1762],{},"    tier = \"DEVELOPING\";\n",[1103,1764,1766],{"class":1105,"line":1765},14,[1103,1767,1127],{},[1103,1769,1771],{"class":1105,"line":1770},15,[1103,1772,1227],{"emptyLinePlaceholder":1226},[1103,1774,1776],{"class":1105,"line":1775},16,[1103,1777,1778],{},"System.out.println(tier);\n",[1085,1780,1781,1782,1785,1786,1789,1790,1792,1793,1796,1797,1799,1800,1802,1803,1805,1806,1539],{},"With ",[1089,1783,1784],{},"piecesScored = 6",": the first condition (",[1089,1787,1788],{},">= 8",") is false, so control moves to the ",[1089,1791,1091],{},"; ",[1089,1794,1795],{},"6 >= 5"," is true, so ",[1089,1798,1357],{}," becomes ",[1089,1801,1669],{}," and the trailing ",[1089,1804,1177],{}," never runs. Output: ",[1089,1807,1808],{},"SOLID",[1085,1810,1811,1812,1815,1816,1819],{},"Notice the middle branch doesn't need to also check ",[1089,1813,1814],{},"piecesScored \u003C 8"," — by the time ",[1089,1817,1818],{},"else if (piecesScored >= 5)"," is reached, the first condition has already failed, so being here already means it's under 8.",[1080,1821,1823,1824,1826],{"id":1822},"step-3-why-it-cant-be-separate-ifs","Step 3: Why It Can't Be Separate ",[1089,1825,1190],{},"s",[1085,1828,1829,1830,1832],{},"Writing three unconnected ",[1089,1831,1190],{}," statements instead would check all three independently, and a later one can silently overwrite an earlier assignment:",[1094,1834,1836],{"className":1096,"code":1835,"language":1098,"meta":1099,"style":1099},"\u002F\u002F NOT connected — every condition is checked independently\nif (piecesScored >= 8)  { tier = \"ELITE\"; }\nif (piecesScored >= 5)  { tier = \"SOLID\"; }       \u002F\u002F an 8 would ALSO hit this,\nif (piecesScored \u003C 5)   { tier = \"DEVELOPING\"; }  \u002F\u002F overwriting \"ELITE\" with \"SOLID\"!\n",[1089,1837,1838,1843,1848,1853],{"__ignoreMap":1099},[1103,1839,1840],{"class":1105,"line":1106},[1103,1841,1842],{},"\u002F\u002F NOT connected — every condition is checked independently\n",[1103,1844,1845],{"class":1105,"line":1112},[1103,1846,1847],{},"if (piecesScored >= 8)  { tier = \"ELITE\"; }\n",[1103,1849,1850],{"class":1105,"line":1118},[1103,1851,1852],{},"if (piecesScored >= 5)  { tier = \"SOLID\"; }       \u002F\u002F an 8 would ALSO hit this,\n",[1103,1854,1855],{"class":1105,"line":1124},[1103,1856,1857],{},"if (piecesScored \u003C 5)   { tier = \"DEVELOPING\"; }  \u002F\u002F overwriting \"ELITE\" with \"SOLID\"!\n",[1085,1859,1860,1861,1864,1865,1867,1868,1870,1871,1873,1874,1876,1877,1880,1881,1883],{},"With a score of ",[1089,1862,1863],{},"8",", the chained version correctly stops at ",[1089,1866,1665],{},". This unconnected version would first set ",[1089,1869,1357],{}," to ",[1089,1872,1665],{},", then immediately overwrite it with ",[1089,1875,1669],{}," on the very next line, since ",[1089,1878,1879],{},"8 >= 5"," is also true. ",[1089,1882,1091],{}," is what makes the branches mutually exclusive.",[1080,1885,1887,1888,1890],{"id":1886},"step-4-the-trailing-else-isnt-optional-busywork","Step 4: The Trailing ",[1089,1889,1177],{}," Isn't Optional Busywork",[1085,1892,1893,1894,1896,1897,1899,1900,1903,1904,1906],{},"Leaving off the final ",[1089,1895,1177],{}," means \"do nothing\" becomes a real possible outcome — if neither condition had matched, ",[1089,1898,1357],{}," would never be assigned at all, and the ",[1089,1901,1902],{},"println"," below it wouldn't even compile (Java requires a local variable to be definitely assigned before it's read). Keeping the plain ",[1089,1905,1177],{}," guarantees every possible score lands in exactly one tier.",[1080,1908,1910],{"id":1909},"recap","Recap",[1525,1912,1913,1917,1921],{},[1528,1914,1915,1592],{},[1089,1916,1091],{},[1528,1918,1595,1919,1598],{},[1089,1920,1190],{},[1528,1922,1601,1923,1604,1925,1607],{},[1089,1924,1177],{},[1089,1926,1190],{},[1631,1928,1633],{},{"title":1099,"searchDepth":1112,"depth":1112,"links":1930},[1931,1932,1933,1935,1937,1939],{"id":1658,"depth":1112,"text":1659},{"id":1677,"depth":1112,"text":1678},{"id":1690,"depth":1112,"text":1934},"Step 2: Chain the Branches with else if",{"id":1822,"depth":1112,"text":1936},"Step 3: Why It Can't Be Separate ifs",{"id":1886,"depth":1112,"text":1938},"Step 4: The Trailing else Isn't Optional Busywork",{"id":1909,"depth":1112,"text":1910},{"outlineRef":1645,"pairsWith":1941,"status":1942},"[`lessons\u002Fch05-control-structures\u002F5.5-nested-if-statements.md`](..\u002F..\u002Flessons\u002Fch05-control-structures\u002F5.5-nested-if-statements.md)","new — authored worked example (fully solved, walked step by step — not a problem to attempt)",{"title":531,"description":1099},"4q16EAGQyMcc4O96jdvSnmX4MXZacrpaCmSBwC3SGXE",{"id":1946,"title":840,"body":1947,"description":1099,"extension":1643,"meta":2864,"navigation":1226,"path":839,"seo":2866,"stem":841,"__hash__":2867},"exercises\u002Fshockwave-curriculum\u002Fexercises\u002Fch05-control-structures\u002F5.5-nested-if-statements.md",{"type":1073,"value":1948,"toc":2859},[1949,1952,1956,1962,1991,2002,2007,2050,2056,2084,2117,2121,2142,2145,2291,2296,2391,2460,2464,2470,2515,2518,2542,2550,2555,2591,2596,2710,2715,2807,2857],[1076,1950,840],{"id":1951},"nested-if-statements-exercises",[1080,1953,1955],{"id":1954},"multiple-choice","Multiple Choice",[1085,1957,1958,1961],{},[1531,1959,1960],{},"Question:"," (The indentation below is shown exactly as a teammate typed it — on purpose.)",[1094,1963,1965],{"className":1096,"code":1964,"language":1098,"meta":1099,"style":1099},"if (batteryVoltage > 11.0)\n    if (allSensorsOk)\n        System.out.println(\"READY\");\nelse\n    System.out.println(\"NOT READY\");\n",[1089,1966,1967,1972,1977,1982,1986],{"__ignoreMap":1099},[1103,1968,1969],{"class":1105,"line":1106},[1103,1970,1971],{},"if (batteryVoltage > 11.0)\n",[1103,1973,1974],{"class":1105,"line":1112},[1103,1975,1976],{},"    if (allSensorsOk)\n",[1103,1978,1979],{"class":1105,"line":1118},[1103,1980,1981],{},"        System.out.println(\"READY\");\n",[1103,1983,1984],{"class":1105,"line":1124},[1103,1985,1155],{},[1103,1987,1988],{"class":1105,"line":1130},[1103,1989,1990],{},"    System.out.println(\"NOT READY\");\n",[1085,1992,1993,1994,1997,1998,2001],{},"If ",[1089,1995,1996],{},"batteryVoltage"," is ",[1089,1999,2000],{},"10.5",", what prints?",[1085,2003,2004],{},[1531,2005,2006],{},"Options:",[1525,2008,2009,2021,2030,2041],{},[1528,2010,2011,2012,2015,2016,2018,2019],{},"A. ",[1089,2013,2014],{},"NOT READY",", because the ",[1089,2017,1177],{}," attaches to the outer ",[1089,2020,1190],{},[1528,2022,2023,2024,2026,2027,2029],{},"B. Nothing prints, because the ",[1089,2025,1177],{}," attaches to the inner ",[1089,2028,1190],{},", and the outer condition is false",[1528,2031,2032,2033,2036,2037,2040],{},"C. ",[1089,2034,2035],{},"READY",", because ",[1089,2038,2039],{},"allSensorsOk"," is never checked when voltage is low",[1528,2042,2043,2044,2046,2047,2049],{},"D. It doesn't compile, because an ",[1089,2045,1190],{}," inside an ",[1089,2048,1190],{}," needs braces",[1085,2051,2052,2055],{},[1531,2053,2054],{},"Answer:"," B",[1085,2057,2058,2061,2062,2064,2065,2067,2068,2071,2072,2075,2076,2078,2079,1430,2081,2083],{},[1531,2059,2060],{},"Why:"," Without braces, an ",[1089,2063,1177],{}," always attaches to the closest unmatched ",[1089,2066,1190],{},", regardless of indentation — here, that's the inner ",[1089,2069,2070],{},"if (allSensorsOk)",", not the outer one. Since ",[1089,2073,2074],{},"batteryVoltage > 11.0"," is false, the entire outer ",[1089,2077,1190],{},"'s body — including that inner ",[1089,2080,1190],{},[1089,2082,1177],{}," pair — never runs at all. Nothing prints.",[1525,2085,2086,2095,2111],{},[1528,2087,2088,2089,2091,2092,2094],{},"A is wrong because that's what the indentation visually suggests, but Java ignores indentation entirely; the ",[1089,2090,1177],{}," binds to the nearest unmatched ",[1089,2093,1190],{},", which is the inner one.",[1528,2096,2097,2098,2100,2101,1430,2103,2105,2106,2108,2109,1539],{},"C is wrong because it's true that ",[1089,2099,2039],{}," is never checked, but that also means the inner ",[1089,2102,1190],{},[1089,2104,1177],{}," block — including its ",[1089,2107,1177],{}," — never runs, so nothing prints, not ",[1089,2110,2035],{},[1528,2112,2113,2114,2116],{},"D is wrong because nested ",[1089,2115,1190],{}," statements without braces compile just fine in Java; it's a readability and correctness hazard (the dangling-else problem), not a compiler error.",[1080,2118,2120],{"id":2119},"micro-parsons","Micro-Parsons",[1085,2122,2123,2126,2127,2130,2131,2134,2135,2138,2139,2141],{},[1531,2124,2125],{},"Problem:"," These lines, once correctly ordered, form a program that prints ",[1089,2128,2129],{},"\"FAST\""," if a climb took under 10 seconds, ",[1089,2132,2133],{},"\"OK\""," if it took under 20 seconds, or ",[1089,2136,2137],{},"\"SLOW\""," otherwise — the trailing ",[1089,2140,1177],{}," makes sure every possible climb time lands somewhere, instead of silently doing nothing.",[1085,2143,2144],{},"Reorder the fragments below into a working program:",[1525,2146,2147,2153,2179,2185,2191,2197,2221,2227,2233,2256,2262,2268],{},[1528,2148,2149,2150],{},"a. ",[1089,2151,2152],{},"        if (climbTime \u003C 10.0)",[1528,2154,2155,2156,2159],{},"b. ",[1193,2157,2158],{},"(three lines, merged — this branch's only statement and its own braces, since nothing else could ever validly go between them)",[1094,2160,2162],{"className":1096,"code":2161,"language":1098,"meta":1099,"style":1099},"        {\n            System.out.println(\"FAST\");\n        }\n",[1089,2163,2164,2169,2174],{"__ignoreMap":1099},[1103,2165,2166],{"class":1105,"line":1106},[1103,2167,2168],{},"        {\n",[1103,2170,2171],{"class":1105,"line":1112},[1103,2172,2173],{},"            System.out.println(\"FAST\");\n",[1103,2175,2176],{"class":1105,"line":1118},[1103,2177,2178],{},"        }\n",[1528,2180,2181,2182],{},"c. ",[1089,2183,2184],{},"public class ClimbSpeed",[1528,2186,2187,2188],{},"d. ",[1089,2189,2190],{},"        else if (climbTime \u003C 20.0)",[1528,2192,2193,2194],{},"e. ",[1089,2195,2196],{},"    public static void main(String[] args)",[1528,2198,2199,2200,2203],{},"f. ",[1193,2201,2202],{},"(three lines, merged — this branch's only statement and its own braces)",[1094,2204,2206],{"className":1096,"code":2205,"language":1098,"meta":1099,"style":1099},"        {\n            System.out.println(\"OK\");\n        }\n",[1089,2207,2208,2212,2217],{"__ignoreMap":1099},[1103,2209,2210],{"class":1105,"line":1106},[1103,2211,2168],{},[1103,2213,2214],{"class":1105,"line":1112},[1103,2215,2216],{},"            System.out.println(\"OK\");\n",[1103,2218,2219],{"class":1105,"line":1118},[1103,2220,2178],{},[1528,2222,2223,2224],{},"g. ",[1089,2225,2226],{},"        else",[1528,2228,2229,2230],{},"h. ",[1089,2231,2232],{},"{",[1528,2234,2235,2236,2238],{},"i. ",[1193,2237,2202],{},[1094,2239,2241],{"className":1096,"code":2240,"language":1098,"meta":1099,"style":1099},"        {\n            System.out.println(\"SLOW\");\n        }\n",[1089,2242,2243,2247,2252],{"__ignoreMap":1099},[1103,2244,2245],{"class":1105,"line":1106},[1103,2246,2168],{},[1103,2248,2249],{"class":1105,"line":1112},[1103,2250,2251],{},"            System.out.println(\"SLOW\");\n",[1103,2253,2254],{"class":1105,"line":1118},[1103,2255,2178],{},[1528,2257,2258,2259],{},"j. ",[1089,2260,2261],{},"    {",[1528,2263,2264,2265],{},"k. ",[1089,2266,2267],{},"        double climbTime = 14.5;",[1528,2269,2270,2271,2278],{},"l. ",[1193,2272,2273,2274,2277],{},"(two lines, merged into one fragment — nothing valid can ever come between the closing brace of ",[1089,2275,2276],{},"main"," and the closing brace of the class)",[1094,2279,2281],{"className":1096,"code":2280,"language":1098,"meta":1099,"style":1099},"    }\n}\n",[1089,2282,2283,2287],{"__ignoreMap":1099},[1103,2284,2285],{"class":1105,"line":1106},[1103,2286,1326],{},[1103,2288,2289],{"class":1105,"line":1112},[1103,2290,1127],{},[1085,2292,2293,2295],{},[1531,2294,2054],{}," c, h, e, j, k, a, b, d, f, g, i, l",[1094,2297,2299],{"className":1096,"code":2298,"language":1098,"meta":1099,"style":1099},"public class ClimbSpeed\n{\n    public static void main(String[] args)\n    {\n        double climbTime = 14.5;\n\n        if (climbTime \u003C 10.0)\n        {\n            System.out.println(\"FAST\");\n        }\n        else if (climbTime \u003C 20.0)\n        {\n            System.out.println(\"OK\");\n        }\n        else\n        {\n            System.out.println(\"SLOW\");\n        }\n    }\n}\n",[1089,2300,2301,2306,2310,2315,2319,2324,2328,2333,2337,2341,2345,2350,2354,2358,2362,2367,2371,2376,2381,2386],{"__ignoreMap":1099},[1103,2302,2303],{"class":1105,"line":1106},[1103,2304,2305],{},"public class ClimbSpeed\n",[1103,2307,2308],{"class":1105,"line":1112},[1103,2309,1115],{},[1103,2311,2312],{"class":1105,"line":1118},[1103,2313,2314],{},"    public static void main(String[] args)\n",[1103,2316,2317],{"class":1105,"line":1124},[1103,2318,1317],{},[1103,2320,2321],{"class":1105,"line":1130},[1103,2322,2323],{},"        double climbTime = 14.5;\n",[1103,2325,2326],{"class":1105,"line":1136},[1103,2327,1227],{"emptyLinePlaceholder":1226},[1103,2329,2330],{"class":1105,"line":1141},[1103,2331,2332],{},"        if (climbTime \u003C 10.0)\n",[1103,2334,2335],{"class":1105,"line":1147},[1103,2336,2168],{},[1103,2338,2339],{"class":1105,"line":1152},[1103,2340,2173],{},[1103,2342,2343],{"class":1105,"line":1158},[1103,2344,2178],{},[1103,2346,2347],{"class":1105,"line":1163},[1103,2348,2349],{},"        else if (climbTime \u003C 20.0)\n",[1103,2351,2352],{"class":1105,"line":1169},[1103,2353,2168],{},[1103,2355,2356],{"class":1105,"line":1759},[1103,2357,2216],{},[1103,2359,2360],{"class":1105,"line":1765},[1103,2361,2178],{},[1103,2363,2364],{"class":1105,"line":1770},[1103,2365,2366],{},"        else\n",[1103,2368,2369],{"class":1105,"line":1775},[1103,2370,2168],{},[1103,2372,2374],{"class":1105,"line":2373},17,[1103,2375,2251],{},[1103,2377,2379],{"class":1105,"line":2378},18,[1103,2380,2178],{},[1103,2382,2384],{"class":1105,"line":2383},19,[1103,2385,1326],{},[1103,2387,2389],{"class":1105,"line":2388},20,[1103,2390,1127],{},[1085,2392,2393,2396,2397,2400,2401,2404,2405,2407,2408,2411,2412,2415,2416,2407,2419,2422,2423,2407,2425,2428,2429,2432,2433,2407,2435,2438,2439,2442,2443,2407,2445,2448,2449,2451,2452,2455,2456,2459],{},[1531,2394,2395],{},"Why this order:"," The class (",[1089,2398,2399],{},"c",") and its opening brace (",[1089,2402,2403],{},"h",") open the program, followed by ",[1089,2406,2276],{}," (",[1089,2409,2410],{},"e",") and its own opening brace (",[1089,2413,2414],{},"j","). ",[1089,2417,2418],{},"climbTime",[1089,2420,2421],{},"k",") has to be declared before anything checks it. The ",[1089,2424,1190],{},[1089,2426,2427],{},"a",") comes first in the chain; its single-statement body and own braces are merged into one fragment (",[1089,2430,2431],{},"b",") since nothing else could ever validly sit inside them. ",[1089,2434,1091],{},[1089,2436,2437],{},"d",") has to directly follow that closing brace — it's part of the same chain, not a separate statement — with its own merged body (",[1089,2440,2441],{},"f","). The final ",[1089,2444,1177],{},[1089,2446,2447],{},"g",") has no condition of its own: it catches every climb time that didn't match either range above, so ",[1089,2450,2137],{}," is a real reachable outcome instead of the chain silently doing nothing; its body is merged the same way (",[1089,2453,2454],{},"i","). Only one of the three branches ever runs. Finally, ",[1089,2457,2458],{},"l"," — the method's closing brace immediately followed by the class's closing brace, merged into a single fragment since nothing could ever validly go between them — ends the program.",[1080,2461,2463],{"id":2462},"coding","Coding",[1085,2465,2466,2469],{},[1531,2467,2468],{},"Mode:"," harness",[1085,2471,2472,2474,2475,2478,2479,2482,2483,1574,2486,2489,2490,2493,2494,2497,2498,2500,2501,2504,2505,2507,2508,2510,2511,1997,2513,1539],{},[1531,2473,2125],{}," The robot's vision system measures the distance to a target in meters and sorts it into a\nzone. Write ",[1089,2476,2477],{},"zoneFor",", which returns ",[1089,2480,2481],{},"\"CLOSE\""," if the distance is ",[1531,2484,2485],{},"less than",[1089,2487,2488],{},"1.0",", ",[1089,2491,2492],{},"\"MID\""," if it is\nless than ",[1089,2495,2496],{},"3.0"," (but not less than ",[1089,2499,2488],{},"), and ",[1089,2502,2503],{},"\"FAR\""," for everything else. A distance of exactly ",[1089,2506,2488],{}," is\n",[1089,2509,2492],{}," and exactly ",[1089,2512,2496],{},[1089,2514,2503],{},[1085,2516,2517],{},"Examples:",[1525,2519,2520,2528,2535],{},[1528,2521,2522,2525,2526],{},[1089,2523,2524],{},"zoneFor(0.5)"," returns ",[1089,2527,2481],{},[1528,2529,2530,2525,2533],{},[1089,2531,2532],{},"zoneFor(2.0)",[1089,2534,2492],{},[1528,2536,2537,2525,2540],{},[1089,2538,2539],{},"zoneFor(5.0)",[1089,2541,2503],{},[1085,2543,2544,1574,2547],{},[1531,2545,2546],{},"Signature:",[1089,2548,2549],{},"public static String zoneFor(double distance)",[1085,2551,2552],{},[1531,2553,2554],{},"Starter:",[1094,2556,2558],{"className":1096,"code":2557,"language":1098,"meta":1099,"style":1099},"public class Solution\n{\n    public static String zoneFor(double distance)\n    {\n        \u002F\u002F TODO: pick exactly one zone with an else if chain\n    }\n}\n",[1089,2559,2560,2565,2569,2574,2578,2583,2587],{"__ignoreMap":1099},[1103,2561,2562],{"class":1105,"line":1106},[1103,2563,2564],{},"public class Solution\n",[1103,2566,2567],{"class":1105,"line":1112},[1103,2568,1115],{},[1103,2570,2571],{"class":1105,"line":1118},[1103,2572,2573],{},"    public static String zoneFor(double distance)\n",[1103,2575,2576],{"class":1105,"line":1124},[1103,2577,1317],{},[1103,2579,2580],{"class":1105,"line":1130},[1103,2581,2582],{},"        \u002F\u002F TODO: pick exactly one zone with an else if chain\n",[1103,2584,2585],{"class":1105,"line":1136},[1103,2586,1326],{},[1103,2588,2589],{"class":1105,"line":1141},[1103,2590,1127],{},[1085,2592,2593],{},[1531,2594,2595],{},"Tests:",[2597,2598,2599,2615],"table",{},[2600,2601,2602],"thead",{},[2603,2604,2605,2609,2612],"tr",{},[2606,2607,2608],"th",{},"Visible",[2606,2610,2611],{},"Arguments",[2606,2613,2614],{},"Expected",[2616,2617,2618,2633,2646,2659,2672,2684,2697],"tbody",{},[2603,2619,2620,2624,2629],{},[2621,2622,2623],"td",{},"yes",[2621,2625,2626],{},[1089,2627,2628],{},"0.5",[2621,2630,2631],{},[1089,2632,2481],{},[2603,2634,2635,2637,2642],{},[2621,2636,2623],{},[2621,2638,2639],{},[1089,2640,2641],{},"2.0",[2621,2643,2644],{},[1089,2645,2492],{},[2603,2647,2648,2650,2655],{},[2621,2649,2623],{},[2621,2651,2652],{},[1089,2653,2654],{},"5.0",[2621,2656,2657],{},[1089,2658,2503],{},[2603,2660,2661,2664,2668],{},[2621,2662,2663],{},"no",[2621,2665,2666],{},[1089,2667,2488],{},[2621,2669,2670],{},[1089,2671,2492],{},[2603,2673,2674,2676,2680],{},[2621,2675,2663],{},[2621,2677,2678],{},[1089,2679,2496],{},[2621,2681,2682],{},[1089,2683,2503],{},[2603,2685,2686,2688,2693],{},[2621,2687,2663],{},[2621,2689,2690],{},[1089,2691,2692],{},"0.0",[2621,2694,2695],{},[1089,2696,2481],{},[2603,2698,2699,2701,2706],{},[2621,2700,2663],{},[2621,2702,2703],{},[1089,2704,2705],{},"2.5",[2621,2707,2708],{},[1089,2709,2492],{},[1085,2711,2712],{},[1531,2713,2714],{},"Solution:",[1094,2716,2718],{"className":1096,"code":2717,"language":1098,"meta":1099,"style":1099},"public class Solution\n{\n    public static String zoneFor(double distance)\n    {\n        String zone;\n        if (distance \u003C 1.0)\n        {\n            zone = \"CLOSE\";\n        }\n        else if (distance \u003C 3.0)\n        {\n            zone = \"MID\";\n        }\n        else\n        {\n            zone = \"FAR\";\n        }\n        return zone;\n    }\n}\n",[1089,2719,2720,2724,2728,2732,2736,2741,2746,2750,2755,2759,2764,2768,2773,2777,2781,2785,2790,2794,2799,2803],{"__ignoreMap":1099},[1103,2721,2722],{"class":1105,"line":1106},[1103,2723,2564],{},[1103,2725,2726],{"class":1105,"line":1112},[1103,2727,1115],{},[1103,2729,2730],{"class":1105,"line":1118},[1103,2731,2573],{},[1103,2733,2734],{"class":1105,"line":1124},[1103,2735,1317],{},[1103,2737,2738],{"class":1105,"line":1130},[1103,2739,2740],{},"        String zone;\n",[1103,2742,2743],{"class":1105,"line":1136},[1103,2744,2745],{},"        if (distance \u003C 1.0)\n",[1103,2747,2748],{"class":1105,"line":1141},[1103,2749,2168],{},[1103,2751,2752],{"class":1105,"line":1147},[1103,2753,2754],{},"            zone = \"CLOSE\";\n",[1103,2756,2757],{"class":1105,"line":1152},[1103,2758,2178],{},[1103,2760,2761],{"class":1105,"line":1158},[1103,2762,2763],{},"        else if (distance \u003C 3.0)\n",[1103,2765,2766],{"class":1105,"line":1163},[1103,2767,2168],{},[1103,2769,2770],{"class":1105,"line":1169},[1103,2771,2772],{},"            zone = \"MID\";\n",[1103,2774,2775],{"class":1105,"line":1759},[1103,2776,2178],{},[1103,2778,2779],{"class":1105,"line":1765},[1103,2780,2366],{},[1103,2782,2783],{"class":1105,"line":1770},[1103,2784,2168],{},[1103,2786,2787],{"class":1105,"line":1775},[1103,2788,2789],{},"            zone = \"FAR\";\n",[1103,2791,2792],{"class":1105,"line":2373},[1103,2793,2178],{},[1103,2795,2796],{"class":1105,"line":2378},[1103,2797,2798],{},"        return zone;\n",[1103,2800,2801],{"class":1105,"line":2383},[1103,2802,1326],{},[1103,2804,2805],{"class":1105,"line":2388},[1103,2806,1127],{},[1085,2808,2809,2811,2812,2814,2815,2818,2819,2821,2822,2825,2826,2828,2829,2832,2833,2836,2837,2839,2840,2843,2844,2847,2848,2850,2851,2853,2854,2856],{},[1531,2810,2060],{}," An ",[1089,2813,1091],{}," chain runs only the first branch whose condition is true, so the ",[1089,2816,2817],{},"MID"," test\ndoes not need to say \"and at least ",[1089,2820,2488],{},"\": by the time it is checked, ",[1089,2823,2824],{},"CLOSE"," has already been ruled out.\nThe trailing ",[1089,2827,1177],{}," makes sure ",[1089,2830,2831],{},"zone"," is definitely assigned before the ",[1089,2834,2835],{},"return","; without it the compiler\nrefuses to read ",[1089,2838,2831],{},". Using ",[1089,2841,2842],{},"\u003C="," instead of ",[1089,2845,2846],{},"\u003C"," moves the boundary values ",[1089,2849,2488],{}," and ",[1089,2852,2496],{}," into the wrong\nzone, and writing the three tests as separate ",[1089,2855,1190],{},"s lets a later one overwrite an earlier result.",[1631,2858,1633],{},{"title":1099,"searchDepth":1112,"depth":1112,"links":2860},[2861,2862,2863],{"id":1954,"depth":1112,"text":1955},{"id":2119,"depth":1112,"text":2120},{"id":2462,"depth":1112,"text":2463},{"outlineRef":1645,"pairsWith":1941,"status":2865},"new — authored exercises (Multiple Choice + Micro-Parsons + Coding)",{"title":840,"description":1099},"bMocGeFPzSWzYebEzZizA2kVQcmQHYHCdvn5SvQV6Gg",1792718164818]