Stage 0: Operators + Java Fundamentals#20
Open
Adrianamm wants to merge 9 commits into
Open
Conversation
Closed
ArchdukeTim
suggested changes
May 27, 2026
ArchdukeTim
left a comment
There was a problem hiding this comment.
There are already many free online courses that teach an introduction to java and its syntax. Would it be better to just recommend one of them as a precursor, rather than trying to reinvent the wheel?
| Data types refer to the type of value that our variable has. It helps tell our program more information about our variables such as what type of information it holds and how it can be used. | ||
| Data types can include numbers, characters or a string of words. Some examples of data types that are commonly used in FRC programming are: | ||
| * Int: integers or numbers that are positive or negative. Int only allows numbers without decimals. Example: 12 | ||
| * Double: Double: numbers that are positive or negative. Unlike int, double allows numbers with or without decimals. Example: 34.1 |
There was a problem hiding this comment.
Suggested change
| * Double: Double: numbers that are positive or negative. Unlike int, double allows numbers with or without decimals. Example: 34.1 | |
| * Double: numbers that are positive or negative. Unlike int, double allows numbers with or without decimals. Example: 34.1 |
Comment on lines
+10
to
+11
| ## Syntax | ||
| As you start programming, you might make a mistake or make a typo. When that happens, your code will have a red line under it. This is because Java has rules called syntax. Syntax is a set of rules that have to be followed so that the computer can understand and run your code. It’s important to pay attention to the syntax! |
There was a problem hiding this comment.
Syntax errors are common, but not the only reason that you might get a compiler error. For example, using a misspelled variable name is valid syntax, but still an error.
Comment on lines
+36
to
+38
| The name of your variable can be whatever you want. However, it should be easy to read and make sense to others who may be reading your code. | ||
| There are also some rules with variable names. The name of the variable can not include spaces. Instead you can write variables with camel case (frontLeftDrive) and snake case (front_Left_Drive). | ||
| Variable names can not start with a number. However, they can have a number at the end of the name. |
There was a problem hiding this comment.
can be whatever you want...rules with variable names
It would be better to just state what the rules and maybe conventions are
they can have a number at the end of the name
They can have a number anywhere except the start
Co-authored-by: Tim Winters <twinters007@gmail.com>
…oftware.org into Stage-0-Operators
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Added information about operators for stage 0
It includes: Arithmetic, Assignment, Comparison and Logical operators.
No exercise yet but I plan to add one in after all stage 0 material is written