Scala Tutorial 4 - Data Types and Variables

  Рет қаралды 102,840

ProgrammingKnowledge

ProgrammingKnowledge

Күн бұрын

Пікірлер
@siddheshswnt
@siddheshswnt 5 жыл бұрын
I am glad that I stumbled upon this channel.
@GauravgaurG
@GauravgaurG 7 жыл бұрын
This is really a nice introductory video for val/var in Scala, but I think it would be good to first talk about expressions in Scala and then move on to a little bit complex example like the one mentioned on time 11:51. As it is bit confusing to read this statement when someone is just starting on Scala
@seanmceachern6151
@seanmceachern6151 4 жыл бұрын
Thank you! I couldn't figure out how to get into scala interpreter! I was just missing the scala console command. whew
@murifedontrun3363
@murifedontrun3363 6 жыл бұрын
The below code works: val x = { val x: Int = 100 ; val y : Int = 200; x + y} My question in regards to the above, is if we have already defined x with val as 100, then why in the result the new value of x i.e 300 is successfully getting stored? Why not throwing an error?
@Sanjusamson_8283
@Sanjusamson_8283 Жыл бұрын
As again we assigning the value in x (val x;int =300), it is taking as new value. Just try this (val x : int = 50) in the x variable 50 values is present .then x = 60 u can not change .hence we have used val. Just do same process with var . The x value will be changed
@vishakha1902
@vishakha1902 6 жыл бұрын
I have a query : val means immutable variable. Then in video you assigned val x 2 different values. And scala didn't throw any error. Why?
@imdebasispanda
@imdebasispanda 6 жыл бұрын
because when you do x * 2 you are assigning the result to a new variable(here its res3) not itself to x.
@tipandtrick5700
@tipandtrick5700 7 жыл бұрын
I'm open Android studio and open an existing android studio project but some errors this game 8 ball pool apk
@techzoo1
@techzoo1 3 жыл бұрын
Thanks for creating an understandable tutorial about Scala. I’m sorry but the official Scala course on Coursera is a piece of crap in comparison.
@nallamillibalaveeraraghava9663
@nallamillibalaveeraraghava9663 6 жыл бұрын
Just like swift language for ios
@rafiulhassan4027
@rafiulhassan4027 7 жыл бұрын
putting val before any variable makes the variable's value unchangeable ,right? but here in the example of 1st multi statement/expression , once the result initialized in x variable < x: Int = 500 > and later on the 2nd example value of x changed < x: Int =1100 > how?
@pallavisingh7143
@pallavisingh7143 4 жыл бұрын
I also have this doubt.. Can anybody explain??
@bubblesgrappling736
@bubblesgrappling736 4 жыл бұрын
Am i the only one that this does absolutely not work for??
@tipandtrick5700
@tipandtrick5700 7 жыл бұрын
hello can you explain how to open 8 ball pool game and how to level change and how to coins change and how to change cash full detail give me please and how is some errors and problems so example and video give me notification OK
@rafiulhassan4027
@rafiulhassan4027 7 жыл бұрын
i don't understood what are you looking for?
Scala Tutorial 24 - map, flatMap, flatten and filter (Higher-order Methods)
13:30
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Primitives Data Types In Java - All the Primitives And What They Do
10:24
Scala Tutorial Full Course
1:24:09
Telusko
Рет қаралды 232 М.
Scala Tutorial 28 - How To Extend Class - Class Inheritance
11:41
ProgrammingKnowledge
Рет қаралды 20 М.
Learning Pandas for Data Analysis? Start Here.
22:50
Rob Mulla
Рет қаралды 136 М.
Scala Tutorial 25 - Reduce, fold or scan
11:24
ProgrammingKnowledge
Рет қаралды 28 М.
x86 Assembly: Hello World!
14:33
John Hammond
Рет қаралды 1,4 МЛН
Scala Tutorials - Type System
13:21
Learning Journal
Рет қаралды 16 М.
The Rust Survival Guide
12:34
Let's Get Rusty
Рет қаралды 181 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН