Learn Java THREADING in 10 minutes! 🧵

  Рет қаралды 1,996

Bro Code

Bro Code

Күн бұрын

Пікірлер: 16
@BroCodez
@BroCodez 19 күн бұрын
import java.util.Scanner; public class Main { public static void main(String[] args) { // Threading = Allows a program to run multiple tasks simultaneously // Helps improve performance with time-consuming operations // (File I/O, network communications, or any background tasks) // How to create a Thread // Option 1. Extend the Thread class (simpler) // Option 2. Implement the Runnable interface (better) Scanner scanner = new Scanner(System.in); MyRunnable myRunnable = new MyRunnable(); Thread thread = new Thread(myRunnable); thread.setDaemon(true); // This thread will end when Main thread finishes thread.start(); System.out.println("You have 10 seconds to enter your name"); System.out.print("Enter your name: "); String name = scanner.nextLine(); System.out.println("Hello " + name); scanner.close(); } } public class MyRunnable implements Runnable{ @Override public void run(){ for(int i = 1; i
@Sviatoslav-Gamer
@Sviatoslav-Gamer 18 күн бұрын
Hey bro! Just wanted to say thanks for all the hard work - you're a pro, and your efforts are really respected. How about making an updated JavaFX course with real-world projects? This could be a practical guide to mastering JavaFX, with everything from basic UIs to more complex apps. Throw in animated UIs, event handling, and library integrations to show off the full power of JavaFX. I know you’ll nail it, and this course will be a great addition to your already impressive work. Thanks again, bro, can’t wait to see it!
@AymanIbrahim-g7g
@AymanIbrahim-g7g 19 күн бұрын
Best teacher ❤
@azharalibhutto1209
@azharalibhutto1209 11 күн бұрын
Great ❤❤❤ bro
@AlirezaR5
@AlirezaR5 19 күн бұрын
I miss the old Bro who used to say: So sit back, realx, and enjoy the show ! :(
@marcinzale
@marcinzale 19 күн бұрын
Great explanation.
@TherealShacharTs
@TherealShacharTs 19 күн бұрын
A real bro is before 500 views
@FromTheWombTotheGrave
@FromTheWombTotheGrave 19 күн бұрын
Can you make a course for python AI learning? Like creating AI applications using LLMs, lang chain,rag
@Sainte253
@Sainte253 18 күн бұрын
My goat
@Seif285
@Seif285 19 күн бұрын
Thank you bro 🙏
@Slurpee_Burger
@Slurpee_Burger 19 күн бұрын
Bold move to upload on christmas
@melkor1177
@melkor1177 18 күн бұрын
Bro pls do angular, kotlin , ts,
@ArielRomero-bl7rz
@ArielRomero-bl7rz 18 күн бұрын
In spanish please
19 күн бұрын
2nd
@Bellrocfirethrower
@Bellrocfirethrower 19 күн бұрын
1st
@Bellrocfirethrower
@Bellrocfirethrower 19 күн бұрын
1st
Learn Java MULTITHREADING in 8 minutes! 🧶
8:01
Bro Code
Рет қаралды 1,6 М.
Learn Java GENERICS in 13 minutes! 📦
13:56
Bro Code
Рет қаралды 2,8 М.
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
Vampire SUCKS Human Energy 🧛🏻‍♂️🪫 (ft. @StevenHe )
0:34
Alan Chikin Chow
Рет қаралды 138 МЛН
This is the Only Right Way to Write React clean-code - SOLID
18:23
Learn Java in 15 Minutes (seriously)
19:50
ForrestKnight
Рет қаралды 172 М.
Multithreading in Java Explained in 10 Minutes
10:01
Coding with John
Рет қаралды 994 М.
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 436 М.
The mind behind Linux | Linus Torvalds | TED
21:31
TED
Рет қаралды 6 МЛН
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 315 М.
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel (kiwi)
Рет қаралды 241 М.
God-Tier Developer Roadmap
16:42
Fireship
Рет қаралды 7 МЛН
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.