Kotlin Newbie to Pro - EXCEPTIONS - Part 27

  Рет қаралды 13,464

Philipp Lackner

Philipp Lackner

Күн бұрын

Пікірлер: 17
@georgenady7375
@georgenady7375 4 жыл бұрын
I was studded the basics before but when I watch your videos I decided to make a refreshment on the the materials again with your tutorials and I discovered that there are many of the basics and the concepts that I never heard before ... i am sooooooooo mach thankful
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Thanks for that feedback!! I'm glad I can help you
@willingtushar
@willingtushar 3 жыл бұрын
God bless you for these tutorials man..thanks a lot
@romanesterkin
@romanesterkin 2 жыл бұрын
Hi, thanks for the series! It's super interesting and instructive. I'm afraid your isRectangle is wrong because it doesn't take into account the height. Just a == c && b && d - is a parallelogram
@georgenady7375
@georgenady7375 4 жыл бұрын
you are always the best ever
@wiemrabah
@wiemrabah 4 жыл бұрын
Perfect explanation !
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Thanks!
@Solutionswithnayan
@Solutionswithnayan 10 ай бұрын
Amazing playlist so much helpful
@ahmadosama2652
@ahmadosama2652 Жыл бұрын
Good work bro❤
@noobdev7013
@noobdev7013 3 жыл бұрын
Hi, great video! I was wondering, if it matters which NumberFormatException is being used? There is one for Java and there is another for Kotlin.
@PhilippLackner
@PhilippLackner 3 жыл бұрын
doesn't matter
@AniobiStanley
@AniobiStanley Жыл бұрын
Please I tried putting the try and catch functions in the parameter of the divide function, but it wouldn't run. Can you help me take a look at it and how can I make it work. class DivisionByZeroException: Exception("You cannot divide by zero, change the denominator.") fun divide(numerator: Double, denominator: Double): Double{ if (denominator == 0.0) throw DivisionByZeroException() return numerator/denominator } fun main(args: Array) { //Exceptions println(divide(5.0, try { 0.0 }catch (e: DivisionByZeroException){ 1.0 })) }
@mohitmahajan1947
@mohitmahajan1947 4 жыл бұрын
perfect explanation thanks
@danizimo
@danizimo 2 ай бұрын
lmao I clicked on a profile picture in stories in Telegram and it crashed and this happened while watching this video
@abdremo
@abdremo 4 жыл бұрын
Perfect 👌
@PhilippLackner
@PhilippLackner 4 жыл бұрын
Thanks!
@AniobiStanley
@AniobiStanley Жыл бұрын
//Assignment import kotlin.random.Random class Circle( val radius: Double ): Shape("Circle") { constructor(radius: Int): this(radius.toDouble()) companion object{ fun randomCircle(): Circle{ val radius = Random.nextDouble(1.0,10.0) return Circle(radius) } } init { if(radius < 0) throw NegativeRadiusException() println("$name created with radius $radius. The area of the $name is ${area()}. The perimeter of the $name is ${perimeter()}.") } class NegativeRadiusException: Exception("The radius of the circle cannot be negative, chose a positive radius.") override fun area() = PI * radius.pow(2) override fun perimeter() = 2 * PI * radius }
Kotlin Newbie to Pro - LAMBDA FUNCTIONS - Part 28
16:29
Philipp Lackner
Рет қаралды 35 М.
Kotlin Newbie to Pro - GENERICS - Part 29
19:41
Philipp Lackner
Рет қаралды 34 М.
Exception Handling in Java Tutorial
13:20
Coding with John
Рет қаралды 441 М.
Kotlin Newbie to Pro - CONSTRUCTOR AND FUNCTION OVERLOADING - Part 24
16:00
This Is My FAVORITE Error Handling Class
28:57
Philipp Lackner
Рет қаралды 37 М.
Kotlin Coroutines 101 - Android Conference Talks
24:49
Android Developers
Рет қаралды 138 М.
STOP throwing Exceptions! Start being Explicit
9:51
CodeOpinion
Рет қаралды 27 М.
Kotlin Newbie to Pro - INHERITANCE - Part 21
15:07
Philipp Lackner
Рет қаралды 19 М.
What is the Context? - Android Basics 2023
11:22
Philipp Lackner
Рет қаралды 67 М.
Cleaner exception handling within your Kotlin code WITHOUT a library
7:37
The Self-Taught Software Engineer
Рет қаралды 6 М.
Kotlin Exception Handling Tutorial
12:23
Simplified Coding
Рет қаралды 8 М.