import javax.swing.JOptionPane; public class Main { public static void main(String[] args) { String name = JOptionPane.showInputDialog("Enter your name"); JOptionPane.showMessageDialog(null, "Hello "+name); int age = Integer.parseInt(JOptionPane.showInputDialog("Enter your age")); JOptionPane.showMessageDialog(null, "You are "+age+" years old"); double height = Double.parseDouble(JOptionPane.showInputDialog("Enter your height")); JOptionPane.showMessageDialog(null, "You are "+height+" cm tall"); } }
@bourenaneayoubabdelmadid5211
3 жыл бұрын
Hi bro i need some help here on my projet would you like to help me
@funwithalbi2425
2 жыл бұрын
projet? lol
@crazyg7003
11 ай бұрын
it says Exception in thread "main" java.lang.Error: Unresolved compilation problems: JOptionPane cannot be resolved JOptionPane cannot be resolved JOptionPane cannot be resolved JOptionPane cannot be resolved JOptionPane cannot be resolved JOptionPane cannot be resolved at gui/gui.Main.main(Main.java:7) for some reason
@xspuffyegg2198
10 ай бұрын
did u solve it@@crazyg7003
@Moshiur_Rahman
10 ай бұрын
@@crazyg7003 Try using another code editor
@JuliHoffman
2 жыл бұрын
I had NO idea it was so easy to make simple text boxes!!! Thank you so much for making these videos!!!
@cameronstout1728
5 ай бұрын
Amen haha
@RAHULKUMAR-cu6my
3 жыл бұрын
Bro I am from India and no words to express my gratitudes to you..thank you providing quality content
@chsaireddy22
Жыл бұрын
Iam too
@ItzSora
Жыл бұрын
@@chsaireddy22 i’m sure u stink them
@justinspanos4382
3 жыл бұрын
Thank you so much! Just found your channel and I'm about to binge your videos. Looking forward to what you have to offer!
@Simis999
2 жыл бұрын
Bro's a giant
@Aryan-de9jw
6 ай бұрын
12 feet tall 😂
@Mike.
2 жыл бұрын
Woah, I didn't expect this to be so simple. Thank you!
@infinitepossibilities2614
2 жыл бұрын
240cms that was hilarious bro! Thank you for these tutorials...
@ThomasTheThermonuclearBomb
2 жыл бұрын
Americans, that’s 7’ 10”
@theyouthmedia9451
Жыл бұрын
I'm so glad I found your channel ! THANK YOU SO MUCH Brother. I'm from Myanmar and we can't study anymore due to the current situations happening in here. You just saved me , Brother !
@chainsaw_dog
25 күн бұрын
Thanks man. Did not expect dialogue boxes were these easy to make
@katmcneill1644
Жыл бұрын
This was a cool tutorial! Didn't know it was so easy to make interactive text boxes 😁
@carlosdanielmarquez6693
2 жыл бұрын
This is exactly what I was looking for. Great explanation. Thanks.
@pavelkvasnicka6856
Жыл бұрын
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
@calm_bloomer1219
3 ай бұрын
This is the greatest learning java material ever !
@nonsense-nonsense1
3 жыл бұрын
thanks a bunch Bro. I looked around a lot for hw help and I just couldn't figure out what to do, but this was easy and fast. Thanks a lot again. I could've failed my hw without you
@ThePewPewLord
2 жыл бұрын
this basically summed up the 30 min class that i had to skip. thanks bro
@slonbeskonechen8310
3 жыл бұрын
Perfect explanation! Thank you!
@BroCodez
3 жыл бұрын
thank you for watching Slon!
@wogfjkwei9uhgerh
3 жыл бұрын
thank you, your videos helped me with almost every single project of mine.
@andrewventures7024
3 жыл бұрын
Dude, you and @Alex Lee are how im learning java. Thanks!
@Ryzen4070™
7 ай бұрын
I love this java series, thank you so much!
@StandProudYouAreStrong
Жыл бұрын
Your videos are literally saving my grades! Thank you so much Bro!
@angelschmal
11 ай бұрын
You are a beast, such a massive help for everyone. Thank you!
@joyrainbowdress
2 жыл бұрын
simple, quick and to the point. thanks a ton.
@nikitassouvatzis1928
Жыл бұрын
Ένα πολύ κατατοπιστικό video για Γραφική Διεπαφή Χρήστη (Graphical User Interface)
@lankabrunheild4918
2 жыл бұрын
dude you're awesome for making this.
@ArmSexUnit
3 жыл бұрын
Bro Code, hi dude. Thanks a lot. I am learning java and english with you.👍
@BroCodez
3 жыл бұрын
thanks for watching Yuriy!
@borislove4700
3 жыл бұрын
как успехи?
@BarbaraAngelin
4 ай бұрын
thank you for the great content, youre incredible bro.
@gamalieltun7038
3 жыл бұрын
Bro, it's very helpful. Thanks for the videos.
@anjolianjoli4229
2 жыл бұрын
Commenting in prayer for KZitem algorithm
@Dev-PauloEd
2 жыл бұрын
MAN THIS VIDEO IS SO GOOD THAT MADE ME remember the time when we fell in love? you remember the time (when we first met, girl?)
@alexandrulolea4631
Жыл бұрын
Thank you for the great video! Keep up the great work!
@danielyeye4010
10 ай бұрын
Great explanation. Thank you so much for making these videos!
@Saiyan412
Жыл бұрын
Thanks for this video, really helped me to understand this gui basic very easily
@nfsheat1456
3 ай бұрын
i'm proud to be a fellow bro
@warp5532
Жыл бұрын
Hey bro, Im having some issues with JOptionPane My eclipse wont let me import JOptionPane, I even copied and pasted your code in the comments and it wouldnt work. do I have to reinstall something?
@warp5532
Жыл бұрын
loving your videos so far btw, I've always wanted to get into coding and these videos are really easy to understand
@danielaraujo5142
3 жыл бұрын
Amazing video, thank you so much for this great content!
@frankhernan9643
Жыл бұрын
VIDEO ON HOW TO FIX "JOptionPane cannot be resolved"- kzitem.info/news/bejne/xKNp3IRmb4B2h44
@Birb_Is_The_Word
4 ай бұрын
Life saver!
@arnarpall5893
Жыл бұрын
You are incredibly tall, man.
@eugenezuev7349
4 ай бұрын
Bro is such a bro
@robertscirulis4009
Жыл бұрын
Bro, than you for these simple and easy to follow tutorials :)
@hedgehog337
4 ай бұрын
support for the creator
@Gogito503
19 күн бұрын
I paid Udemy and I am learning more with BroCode
@aldrindelarosa4033
3 жыл бұрын
Thank you, bro for tutorial you are great
@ajaykumar-lf8dh
2 жыл бұрын
Hello bro... You doing such a great job... Love from india
@mohammedhero6933
2 жыл бұрын
Thanks, bro, you're the best
@grozageorge2887
Жыл бұрын
That was really cool, Bro :)
@juanaso
3 жыл бұрын
man i hate to comment this, 69 comments lmao but man, youre a legend, you explain so well and this is so underrated, the worst thing is that this is all free man, thank you, thats all i can say
@raybeastnotreipist9106
2 жыл бұрын
i would ask a beginner question: what does the null within the parenthesis means? what this place in the syntax used for?
@danmiller7709
3 жыл бұрын
Right to the point. Great video.
@ThomasTheThermonuclearBomb
2 жыл бұрын
This is amazing, thanks Bro!
@user-rs2ks1pb1s
Жыл бұрын
Thanks for the GUI intro.
@JaronDCosta
3 жыл бұрын
nobody: captions on: Bro: we will learn more about GUIs later. my captions: we will learn more about gooeys later. #CaptionsAreHillarious
@melihisk990
Жыл бұрын
bro i cannot import javax.swing.JOptionPane how can i handle this problem
@notsaeed
3 жыл бұрын
The algorithm goes brrrrr!
@Duxuuuu
Жыл бұрын
Great video thank you so much for making this video and showing me how to make this app thank you!!!
@mehishclv972
11 ай бұрын
thanks a lot. it was very helpful
@user-vc2tr3fz2p
3 жыл бұрын
This was really helpful thanks bro
@justjake9047
3 жыл бұрын
thank you for your awesome videos bro
@PsycheDevs
Жыл бұрын
Thank you so much, sir, you are really doing great work.
@Alex-jx1qd
Жыл бұрын
Brother to run this program we need any kind of tool. Plz help.
@liliacfury
3 жыл бұрын
How come you didn’t have to instantiate the JOptionPane class to an object? I’d understand if there was a static keyword but beyond that I’m unsure.
@BroCodez
3 жыл бұрын
It's a static class. You would call the class name before using a method JOptionPane.somemethod()
@liliacfury
3 жыл бұрын
@@BroCodez Thanks! Figured that but just wanted to be sure. Love your tutorials. 😊
@lukaskarol9577
8 ай бұрын
What i can do if i have javax.swing like error
@yashtrivedi6163
2 жыл бұрын
Awesome Content Bro 💥💥
@sadoqatsaidova1993
Ай бұрын
bro it's very good lesson
@worldVisionnice
2 жыл бұрын
Really nice thanks so much bro
@miracles4412
2 жыл бұрын
JOptionPane is not working ........please help
@ishug14780
4 ай бұрын
amazing
@rudraarora4620
3 жыл бұрын
247 cm. Lol, we have a dwarf here!!!
@user-ok5qi9di3g
3 жыл бұрын
I can't say nothing just thanks
@wolanus
3 жыл бұрын
Great video
@ibrahimylmaz8378
2 жыл бұрын
you are amazing!
@bartomiejsniadach5795
2 жыл бұрын
another easy lesson. thank you
@sairos4057
2 жыл бұрын
Jun 2022, still works
@fullmetaltheorist
Жыл бұрын
240 cm is around 7 foot 10 inches.
@ayyayyyyooo11
3 жыл бұрын
hey bro "Exception in thread "main" java.lang.error: Unresolved compilation problem: joptionPane cannot be resolved" this is showing up for me please help
@bhumikajoshi6966
3 жыл бұрын
its camel case class, so try using jOptionPane(Capital O)
@ejhhjj
2 жыл бұрын
@@bhumikajoshi6966 didn't work 😣😣
@sairos4057
2 жыл бұрын
You need both j and o being capital JOptionPane; import javax.swing.JOptionPane; ||||| like that
@Detective_depther
Жыл бұрын
@@sairos4057 I have everything right but it's still showing the same error for me
@snowymountaintops75
2 жыл бұрын
Great channel!
@ninofredmaranga1222
2 жыл бұрын
java.swing is missing how do i fix this
@luvisseventeen
Ай бұрын
sorry but it says JOptionPane cannot be resolved. can anyone help me figure it out?
@McAllu
2 ай бұрын
I know this has been a while but i just keep getting " Error occurred during initialization of boot layer java.lang.module.FindException: Module Main not found" I have no idea what to do. Im guessing since this is JDK 15 or smth and i have the 22 new one.
@hamza98888
Жыл бұрын
GREAT TUTORIAL
@mathieudesrosiers3096
2 жыл бұрын
Love you !
@stefan5450
3 жыл бұрын
After the pizza I am well-fed... thanks for not asking for my weight. Height is ok :)
@alialhussain4139
2 ай бұрын
Thanks Bro, 05/31/2024
@valemayx
2 жыл бұрын
I don't understand the first line with import. I've got an error there. Should I choose anything special in settings?
@nartousan3866
Жыл бұрын
i have the same thing as you don t know why
@anamika_deb
3 жыл бұрын
Easy and to the point ✌✔
@medjl6083
3 жыл бұрын
Indispensable lesson for java swing for dialog boxes.
@FrederikWollert
5 ай бұрын
Let's fight the Google algorithm.
@coffeeniffler
2 жыл бұрын
240 cm... yeah, that's a nice height Like small titan
Пікірлер: 279