Java Multiple Choice Quiz Program Tutorial #31

  Рет қаралды 24,362

Alex Lee

Alex Lee

Күн бұрын

Пікірлер: 37
@alexlorenlee
@alexlorenlee Жыл бұрын
If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h
@mikmikcortez426
@mikmikcortez426 5 ай бұрын
how to insert passed and failed condition in this java tutorial? I have tried to run different types but nothing comes out right but the program runs with an initial score, I just made an if and else with ( type > 0) for example 2/10 failed or 9/10 passed.
@rodrigomarques1633
@rodrigomarques1633 Жыл бұрын
When i started programming in Java, your tutorials have helped me a lot. I've sad when you stopped with them, but i'm glad that you are back! I love your videos and hope you continue them. (If i've made a mistake writing, i apologize, i am from Brazil and still learning english too).
@athayahan1525
@athayahan1525 Жыл бұрын
yooo he's back!!🎉
@DevMalu
@DevMalu Жыл бұрын
Alex, really thank you so much for your videos! Your tutorials help a lot who is starting, including, you help all over the world, I'm from Brazil. I'm at the beginning of college and I watch your videos every night to study Java, thank you!❤❤
@Unconqueredxd
@Unconqueredxd Ай бұрын
I'm in college right now and loving these videos. I just started learning so it's great to have these videos. I challenge anybody who reads this and is learning to program to add more to this program for practice! What I did was instead of all the questions coming at once and answering all at once, make it so the program asks 1 at a time and you answer 1 at a time. Another small addition to this is add an else statement that tells the user which question they got wrong. My code for this: public static void main(String[] args) { Scanner scan = new Scanner(System.in); String[] answerKey = {"c","d","a"}; String[] responses = {"","",""}; System.out.println("What is 2+2? "); System.out.println("a) 2"); System.out.println("b) 3"); System.out.println("c) 4"); System.out.println("d) 5"); String input1 = scan.nextLine(); System.out.println("What is 2+3? "); System.out.println("a) 2"); System.out.println("b) 3"); System.out.println("c) 4"); System.out.println("d) 5"); String input2 = scan.nextLine(); System.out.println("What is 3+3? "); System.out.println("a) 6"); System.out.println("b) 3"); System.out.println("c) 4"); System.out.println("d) 5"); String input3 = scan.nextLine(); responses[0] = input1; responses[1] = input2; responses[2] = input3; int score = 0; for(int i = 0; i < 3; i++) { if(responses[i].equalsIgnoreCase(answerKey[i])) { score++; } else { System.out.println("Your answer of "+responses[i]+" is incorrect for question "+ (i+1)); } } System.out.println("Score: " + score + "/3"); }
@magnoliasigningsmobilenota6226
@magnoliasigningsmobilenota6226 Жыл бұрын
I'm presently learning Java and this is my first project! Thank you for explaining everything in such a way I could follow along, and I actually learned something ❤
@NiceChange
@NiceChange Жыл бұрын
Love this. Nice work. Exactly what I needed at the time I needed it. Thanks.
@JoeysWoodShed
@JoeysWoodShed 7 ай бұрын
This is a fantastic explanation of quiz game coding for people like me who are just beginners, great video.
@misszombiesue
@misszombiesue Жыл бұрын
You asked if we enjoyed this video. I did. Thank you for making it :)
@Sijo2
@Sijo2 Жыл бұрын
Hi, Alex. I love your videos. I have learned a little java in the past but now i am going to a online bootcamp to become a software engineer. I know alot of your videos is in java, are you going to do videos of differt coding programing such as python or JavaScript.
@Abhishek454-t4d
@Abhishek454-t4d Жыл бұрын
Anna is back love you man from Karnataka, INDIA
@zekabeka1234
@zekabeka1234 Жыл бұрын
Hey, Alex can you soon load on your channel more complicated programm may be some of your old projects or modern projects which you would like to share with us. I just wanna see a little more complicated challenges from you. I just like all of your Java video tutorials. You have special positive vibe around which make me to learn java not an aggressive way to always be in good mood when i meet you. Please do some harder tasks: like we could solving leetcode tasks in java or something special like to do a real project in future. You are here with us more than years. We are ready to level up.
@balloney2175
@balloney2175 Жыл бұрын
Why not allow answering right after the question?
@toon8945
@toon8945 Жыл бұрын
Hes back
@vishwajeet5051
@vishwajeet5051 Жыл бұрын
Hey alex welcome back..
@lindajustice3101
@lindajustice3101 Жыл бұрын
Hey Alex can you please make a tutorial on Rest api
@sahilrawat7966
@sahilrawat7966 Жыл бұрын
by looking at the choice i always end up thinking about the switch statements
@brianreh6465
@brianreh6465 Жыл бұрын
Thanks for the video!
@CrystallizedMUA
@CrystallizedMUA 10 ай бұрын
I keep getting: error: reached end of file while parsing } but I can’t find the curly bracket it’s missing 😢
@valdemar3264
@valdemar3264 Жыл бұрын
Great vid, thanks!
@shinichi1136
@shinichi1136 Жыл бұрын
Hey alex, can you do small project like hotel system management?
@venukaviz8324
@venukaviz8324 Жыл бұрын
heyyy you are my life saver
@tomgu1809
@tomgu1809 Жыл бұрын
how to set up Eclipse to prompt the needed package and import like u?
@light_skit
@light_skit Жыл бұрын
🙏🙌thank you for this video
@ScreenPrintR
@ScreenPrintR Жыл бұрын
Have you made a flash card program using Java?
@iquake_
@iquake_ Жыл бұрын
Hey Alex, Im struggling with Java Junit in university. Do you think it'd be possible to make a video covering Junit? Thanks :)
@davemerkury
@davemerkury Жыл бұрын
Great stuff Alex! Quick question, do you think using a switch statement or a map would be less verbose? Or is that just Java being Java? Lol
@alexlorenlee
@alexlorenlee Жыл бұрын
Yea those would definitely work as well and probably better! I used basics like arrays and if statements for beginners to practice
@davemerkury
@davemerkury Жыл бұрын
@@alexlorenlee yeah, you wouldn't want to scare folks 🤣🤣. I've learned a lot from you so keep doing what you do!
@youtubecurious9000
@youtubecurious9000 Жыл бұрын
Martials arts is great! But java is the best! -Alex Lee (2023)
@jsviolet
@jsviolet Жыл бұрын
Alex what languages are needed now in the market place ?
@sunnymann9639
@sunnymann9639 Жыл бұрын
python java C++ , c sharp, html, and just be able to pick up new languages quickly sometimes companies use their own.
@vangayosikalam6794
@vangayosikalam6794 10 ай бұрын
Can you tell me the compiler name
@tech-channel5276
@tech-channel5276 8 ай бұрын
He use Eclipse IDE, but i prefer Netbeans it's free.
@grandparick3176
@grandparick3176 Жыл бұрын
Which ide is this?
@naitik1512
@naitik1512 Жыл бұрын
Eclipse IDE for java but i would Recommend good old VS code or code space
Find Duplicate Characters In A String Java Program #32
8:10
Alex Lee
Рет қаралды 66 М.
For Loop Pattern Program In Java #25
15:49
Alex Lee
Рет қаралды 170 М.
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 85 МЛН
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 84 МЛН
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 69 МЛН
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 46 МЛН
Building a Multiple Choice Quiz | Java | Tutorial 29
14:48
Giraffe Academy
Рет қаралды 235 М.
Java quiz game ⌛
1:07:22
Bro Code
Рет қаралды 121 М.
Learn Java in 14 Minutes (seriously)
14:00
Alex Lee
Рет қаралды 4,8 МЛН
Nested For Loop In Java Tutorial #24
10:02
Alex Lee
Рет қаралды 273 М.
Beginners Should Think Differently When Writing Golang
11:35
Anthony GG
Рет қаралды 121 М.
IPC: To Share Memory Or To Send Messages
14:15
Core Dumped
Рет қаралды 55 М.
Text-based Menu Driven Program in Java [Part 1/3]
22:13
Stephen Sheridan
Рет қаралды 19 М.
Arrays In Java Tutorial #10
9:26
Alex Lee
Рет қаралды 464 М.
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 85 МЛН