Тёмный

Pattern Matching in Java: 5 Examples for Busy Developers 

IntelliJ IDEA, a JetBrains IDE
Подписаться 116 тыс.
Просмотров 13 тыс.
50% 1

Наука

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@mustafailikkan7068
@mustafailikkan7068 Год назад
Thanks Mala, I like your teaching style.
@dirkweissenbacher3677
@dirkweissenbacher3677 Год назад
Great Video! Easy to understand. Thank you very much.
@lucasguaru
@lucasguaru Год назад
Nice vídeo. Very helpful. If I can make a suggestion, please take sometime on The option selected before hit enter. It would let me check the option
@bouihabdelouahed1579
@bouihabdelouahed1579 Год назад
Very helpful video indeed. Thank you.
@perwramdemark3063
@perwramdemark3063 Год назад
Great stuff I learnt a lot in short time 🎉😊
@Channel-iu6de
@Channel-iu6de Год назад
great vid. thanks.
@BrazenNL
@BrazenNL Год назад
10:13 If you place the camera view a little higher we can see the whole shortcut line.
@JavaWithMala
@JavaWithMala Год назад
I apologize for the overlook. I've noted it and won't repeat this mistake. Thanks for your feedback.
@BrazenNL
@BrazenNL Год назад
@@JavaWithMala Thank you for the videos.
@Quillraven
@Quillraven Год назад
Which theme are you using in this video? It is nice to look at for a video imo.
@JavaWithMala
@JavaWithMala Год назад
Darcula by JetBrains :-)
@Quillraven
@Quillraven Год назад
@@JavaWithMala ah really? For some reason it looks completely different on my machine 😅
@JavaWithMala
@JavaWithMala Год назад
@@Quillraven I'm also using the new UI in IntelliJ IDEA. I'm unsure if that explains the difference 🙂
@tiagozc1
@tiagozc1 Год назад
@@JavaWithMala I get it that the overall theme is Darcula with the new UI, but what about the editor Color scheme? For sure it isn't Darcula with all those blue and grey tones 😅
@ChrisAthanas
@ChrisAthanas Год назад
Very useful
@CryptoCodeZone
@CryptoCodeZone Год назад
Great Video, even for Kotlin user, or Just "switch" to Kotlin!😀😀😀
@praveen7730
@praveen7730 Год назад
Title is confusing, i thought you will discuss about pattern matching or regular expressions in java😂😂
@nasamind
@nasamind Год назад
If Else, how many time have you written one? 😀 Always
@mondoshigua
@mondoshigua Год назад
👋🏼🇨🇴🧔🏻👍🏼🤝🏻 Saludos desde Colombia.
@cya3mdirl158
@cya3mdirl158 Год назад
Java is like baroque full of splendor i Preffer kotlin
@RustedCroaker
@RustedCroaker Год назад
Java is like a good written book - easy to fallow the story line and every paragraph is perfectly understandable. Unlike in Kotlin, with its unnecessary fight against the fake "code bloat" concept. If you hate "code bloat" learn Perl. Your code wouldn't be shorter then that. But most the time it would be easer to write a new code from scratch then understand what the old one is doing.
@adambickford8720
@adambickford8720 Год назад
@@RustedCroaker Living up to the name!
@pavolvarga4724
@pavolvarga4724 Год назад
Guys, sorry, I see that you are trying to do a good job, mostly going over and beyond, but iterating over an Enumeration, or switch/case, that is not right, guys you are trying to teach will repeat antipatterns like these. :-( So to make it right: @AllArgsConstructor enum SingleUsePlastic { BOTTLE("Booth 4: Pick up a glass bottle"), SPOON("Pantry: Pick up a steel spoon"), CARRY_BAG("Booth 5: Pick up a cloth bag"), ; final String replacement; } String getReplacements(SingleUsePlastic plastic) { return plastic.replacement; } So the method above will be quite a duplicity itself. And if needed any sort of semantics, enumerations can always implement interfaces, the OOP approach could be like this: public class Sample { interface Arithmetic { int apply(int num1, int num2); } enum Operator implements Arithmetic { PLUS('+') { @Override public int apply(int n1, int n2) { return n1 + n2; } }, MINUS('-') { @Override public int apply(int n1, int n2) { return n1 - n2; } }, CROSS('*') { @Override public int apply(int n1, int n2) { return n1 * n2; } }, DIVIDE('/') { @Override public int apply(int n1, int n2) { return n1 / n2; } }, ; final char operator; Operator(char operator) { this.operator = operator; } } Operator getOperator(char c) { switch (c) { case '+': return PLUS; case '-': return MINUS; case '*': return CROSS; default: return DIVIDE; } } }
Далее
IntelliJ IDEA: Debugger Upskill
20:11
Просмотров 17 тыс.
Сколько стоит ПП?
00:57
Просмотров 217 тыс.
Airpod Through Glass Trick! 😱 #shorts
00:19
Просмотров 2,7 млн
Premature Optimization
12:39
Просмотров 813 тыс.
So You Think You Know Swift? - Nick Lockwood
33:49
Просмотров 1,4 тыс.
My 10 “Clean” Code Principles (Start These Now)
15:12
IntelliJ IDEA. Debugger Essentials
45:37
Просмотров 66 тыс.
The Most Important Design Pattern in React
35:04
Просмотров 61 тыс.
10 Crazy Python Operators That I Rarely Use
11:37
Просмотров 23 тыс.
Differences Between Minecraft Java VS Bedrock
11:41
Просмотров 10 млн
Самый длинный ноутбук!
0:23
Просмотров 44 тыс.
Внутри коробки iPhone 3G 📱
0:36
Просмотров 237 тыс.