Announcement

Collapse
No announcement yet.

final static double

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • final static double

    Can someone explain what final static double does or better yet teach me to fish and let me know where I can look it up myself.

  • #2
    Final: Its value cannot be changed at runtime (is read-only).
    Static: It's not "per instance", but rather is one value shared for all users of a class. It's hard to explain without reading the tutorials (linked later) first.
    double: Short for double-precision floating point. Basically, it stores a decimal.

    The tutorials I was talking about are https://docs.oracle.com/javase/tutorial/java/index.html and the entries under "Learning the Java language" at https://docs.oracle.com/javase/tutor...ybigindex.html.
    FTC6460 mentor (software+computer vision+electronics), FPGA enthusiast. In favor of allowing custom electronics on FTC bots.
    Co-founder of ##ftc live chat for FTC programming--currently you may need to join and wait some time for help--volunteer basis only.

    Comment


    • #3
      Thanks, will check them out. I have been watching java tutorials all day and knew that double was a variable but didn't know the other commands. Is there any FTC reference guide, or software manual that explains all the classes, how the main loop runs, and basic commands?

      Comment


      • #4
        Check out the .pdfs in the ftc_app public repository:

        in this directory:

        https://github.com/ftctechnh/ftc_app...r/doc/tutorial

        There is also the javadoc in the ftc_app directory; however, in my opinion, the javadoc is a bit terse, and could use much more context, examples, and explanation.

        Martin Haeberli
        Mentor, FTC 7593, TigerBots

        Comment


        • #5
          These videos might help:

          https://www.youtube.com/watch?v=a-aXZ9bLNQA

          https://www.youtube.com/watch?v=UtKbbi31PWc
          Programmer for Team 4997 Masquerade -- 2012 World Champions, 2014 - 2016 Division Finalists
          Founding Member of Team 6433 Neutrinos -- 2015 World Champions

          Check out my intro video to the new tech platform
          Check out my team's Robot Reveal for Res-Q

          Comment

          Working...
          X