arithmeticoperators Archives - SoftUni Global https://softuni.org/tag/arithmeticoperators/ Learn Programming and Start a Developer Job Fri, 13 May 2022 11:38:04 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.3 https://softuni.org/wp-content/uploads/2022/04/cropped-SoftUni-Global-Logo-Square-notext-32x32.png arithmeticoperators Archives - SoftUni Global https://softuni.org/tag/arithmeticoperators/ 32 32 Java Basics Tutorial – Part 4 – Data and Calculations https://softuni.org/code-lessons/java-basics-tutorial-part-4-data-and-calculations/ https://softuni.org/code-lessons/java-basics-tutorial-part-4-data-and-calculations/#respond Wed, 20 Oct 2021 11:06:00 +0000 https://softuni.org/?p=9877 In this part of the Java Bascics Tutorial, we take a look at Data and Calculations.

The post Java Basics Tutorial – Part 4 – Data and Calculations appeared first on SoftUni Global.

]]>

data-type-exampleData types specify the different sizes and values stored in a variable. There are two types of data in Java:

  • Primitive data types
  • Non-primitive data types

To start, we will be using these data types only:

  • int –  holds a wide range of non-fractional number values.
  • double – only takes up to 8 bits of memory
  • boolean – can contain only two values: true or false.
  • char – is a symbol representing a Unicode-encoded character.
  • String – is a sequence of characters

Besides printing them on the console, we can use them for various arithmetic operations. The table on the right shows different types of arithmetic operations. All of them are the same as the arithmetic operations you have learned in school.

These may seem like simple operators, but when correctly, used they can be of help on more complex projects.

Lesson Topics

In this video we review the following topics:
  • Variables
  • Data Types
  • Statements
  • Arithmetic Operators
  • Expressions

Practical Exercises

Watch the video and solve the problemsTo better understand the material, do the coding exercises and implement the knowledge you acquired. Writing code is the only way to master the skill of code.

Submit your code in the SoftUni Judge System:

Exercises: Problem Descriptions

Lesson Slides

The post Java Basics Tutorial – Part 4 – Data and Calculations appeared first on SoftUni Global.

]]>
https://softuni.org/code-lessons/java-basics-tutorial-part-4-data-and-calculations/feed/ 0