What you need to know about ARITHMETIC OPERATORS - Android KOTLIN

Published: 03 January 2022
on channel: tutorialsEU - Android
548
20

We´ll be learning to use the Arithmetic Operators in Kotlin! And why the data type is important when building your code! Want to learn everything about Kotlin? Get this!    • Android Complete Course  

Here are the links by the way!

Free download. https://page.tutorials.eu/android

Our Android Masterclass. https://bit.ly/3l6vG86

Kotlin has a set of operators to perform arithmetic, assignment, comparison operators and more. You will learn to use these operators in this article.

Operators are special symbols (characters) that carry out operations on operands (variables and values). For example, + is an operator that performs addition.

In Java variables article, you learned to declare variables and assign values to variables. Now, you will learn to use operators perform various operations on them.

Kotlin supports the following operators and special symbols:
+, -, *, /, % - mathematical operators

is also used to pass an array to a vararg parameter.

= - assignment operator.
is used to specify default values for parameters.

+=, -=, *=, /=, %= - augmented assignment operators.

++, -- - increment and decrement operators.

&&, ||, ! - logical 'and', 'or', 'not' operators (for bitwise operations, use the corresponding infix functions instead).

==, != - equality operators (translated to calls of equals() for non-primitive types).

.. creates a range.

: separates a name from a type in a declaration.

? marks a type as nullable.

And more! Visit the Official Kotlin documentation page for more!
https://kotlinlang.org/docs/keyword-r...

#kotlin #android #tutorial #learn #course #programming #code

tutorialsEU offers you free video tutorials about programming and development for complete beginners up to experienced programmers.
This includes C#, Unity, Python, Android, Kotlin, Machine Learning, etc.
Stay tuned and subscribe to tutorialsEU: https://goo.gl/rBFh3x

Android:    / @tutorialseuandroid  
C#:    / @tutorialseuc  
Unity:    / @tutorialseuunity  
Facebook:   / tutorialseu-109380204093233  
LinkedIn:   / tutorialseu  
Discord:   / discord  


On this page of the site you can watch the video online What you need to know about ARITHMETIC OPERATORS - Android KOTLIN with a duration of hours minute second in good quality, which was uploaded by the user tutorialsEU - Android 03 January 2022, share the link with friends and acquaintances, this video has already been watched 548 times on youtube and it was liked by 20 viewers. Enjoy your viewing!