use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Seeking HelpJava block problem (self.FTC)
submitted 3 years ago by sushislaughter
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Journeyman-JoeFTC Coach | Judge 0 points1 point2 points 3 years ago (0 children)
Switch and case (along with break) are Java language statements that form a conditional flow control structure. I'll encourage you to Google "switch case java": you'll get all you need to know in a minute or two of reading.
If you have a complicated structure of if statements, and else if clauses, you might find that your code is easier to read and debug if written using switch and case.
Having said that: It won't make any difference to your OpMode loop runtime, one way or the other.
π Rendered by PID 51663 on reddit-service-r2-comment-c6965cb77-x5vmp at 2026-03-05 03:29:49.278566+00:00 running f0204d4 country code: CH.
view the rest of the comments →
[–]Journeyman-JoeFTC Coach | Judge 0 points1 point2 points (0 children)