Video is locked.

Unlock the full course today

Join today to access over 15,000 courses taught by industry experts or purchase this course individually.

Java 11+ Essential Training

Manage currency values with BigDecimal

From the course: Java 11+ Essential Training

Start my 1-month free trial
  • Course details

    If you want to build applications for mobile devices, desktop computers, or the web, you need to know Java. This course provides the foundation for learning how to program with the most recent Long-Term Support (LTS) release, Java SE 11, and more recent versions. David Gassner shows how to install Java and the IntelliJ IDEA Community Edition IDE and start working with variables, data types, and other critical language components. He also helps you control program flow with conditional logic and loops, store data with Java collections, and understand how Java implements object-oriented coding principles such as inheritance.

    Instructor

    • Click here to view David Gassner’s instructor page

      David Gassner

      Managing Staff Instructor, LinkedIn Learning Technology Library at LinkedIn

      • David Gassner is the author of over 60 video-based technical training courses for software developers.

        David is a senior staff instructor who specializes in development platforms and programming languages including Android and Java. He currently creates training content for Android developers and content that covers multiple programming languages including Java, C#, Visual Basic, and Go. He was formerly the president and founder of Bardo Technical Services, an Adobe Solutions Network Training Provider. As an Adobe Certified Expert, he wrote courseware for Adobe and delivered extensive training on Flex, ColdFusion, Dreamweaver and Flash. He was the author of Wiley's Flex 3 Bible and Flash Builder 4 and Flex 4 Bible. He most recently designed and developed Audio Cues—an Android app for running sound in live performances—which is available in the Google Play store.

    Skills covered in this course

  • What kind of software can you create?

    - [Instructor] Primitive numeric types are useful for storing single values in memory. But specifically, double and float types aren't always entirely precise. That's because the way they're stored in memory, doesn't always map exactly to the value. You can look at the documentation for the details of this, but it's better just to see an example. I'll go into jshell and I'm going to create a variable named value to have that explicitly type as a primitive double. And I'll assign it a value of .012. Now, I'm going to add that value together three times. And I'm going to create a new double variable that I'll call pSum, I'm using the letter p for primitive, and I'll give it a value of value + value + value. Now before I show you the result, take a guess at what that should be. You might guess it's .036, but instead, you get .036 and a whole bunch of zeroes, followed by a number at the end. So particularly, when you're…

  • Download courses and learn on the go

    Watch courses on your mobile device without an internet connection. Download courses using your iOS or Android LinkedIn Learning app.

    Watch this course anytime, anywhere. Get started with a free trial today.

Contents