Coding And Playing The Lottery In Java - Full Tutorial with Source

Опубликовано: 11 Февраль 2025
на канале: Coding with John
17,579
529

Complete Java course: https://codingwithjohn.thinkific.com/...
Full source code available HERE: https://www.codingwithjohn.com/lotter...
Let's create and play our own Lottery in Java!! We'll start by creating 6 random lottery numbers, then get the user's 6 lottery picks. Then we'll compare the winning Lottery numbers with the user's lotto numbers, and tell them whether they won.
If you can code this, play it, and win it (WITHOUT CHEATING), please let me know in the comments!

This is a beginner friendly Java coding lesson tutorial, where we'll create a full Lottery program from scratch.

Learn or improve your Java by watching it being coded live!

Hey, I'm John! I'm a Lead Java Software Engineer who has been in the industry for more than a decade. I love sharing what I've learned over the years in a way that's understandable for all levels of Java developers.

Let me know what else you'd like to see!

Links to any stuff in this description are affiliate links, so if you buy a product through those links I may earn a small commission.

📕 THE best book to learn Java, Effective Java by Joshua Bloch
https://amzn.to/36AfdUu

📕 One of my favorite programming books, Clean Code by Robert Martin
https://amzn.to/3GTPVhf

🎧 Or get the audio version of Clean Code for FREE here with an Audible free trial
http://www.audibletrial.com/johnclean...



🖥️Standing desk brand I use for recording (get a code for $30 off through this link!)
https://bit.ly/3QPNGko

📹Phone I use for recording:
https://amzn.to/3HepYJu

🎙️Microphone I use (classy, I know):
https://amzn.to/3AYGdbz

Donate with PayPal (Thank you so much!)
https://www.paypal.com/donate/?hosted...


☕Complete Java course:
https://codingwithjohn.thinkific.com/...

https://codingwithjohn.com