Adds typecasting, primitives, variable name, and fixes issue #32 #39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enhanced Variable Declaration Section:
Added details on valid variable naming conventions in Java, including rules and the use of camelCase.
Included an explanation of how Java automatically allocates memory for primitive types, clarifying why operations on them are fast.
Added Primitive Type Casting:
Introduced explanations and code examples for both implicit (widening) and explicit (narrowing) casting between primitive types like int and double.
Added New Section for Class Type Casting:
Created a new subsection titled "Type Casting with Classes (Objects)" to explain casting within an inheritance hierarchy.
Uses a simple Animal/Dog example to demonstrate upcasting (subclass to superclass) and downcasting (superclass to subclass).
Introduces the instanceof operator as a best practice for performing safe downcasts and avoiding ClassCastException.
Removes subsection of IO as Logan is moving that to a separate section.