Java Conditional Operator Tutorial #64

preview_player
Показать описание

The conditional or ternary operator in java lets you make an if-else statement on one line!

There are 3 parts to the conditional (ternary) operator in Java. The first part results in true or false, the middle is the value if it's true and the last is the value if it's false!

I hope you enjoyed this Java conditional (ternary) operator java tutorial!

Disclosure: Springboard link provided is linked to my affiliate account & supports the channel.

Alex Lee
Рекомендации по теме
Комментарии
Автор

Man this guy is a blessing. Thank you for all the effort you put into these videos..

Daresigmally
Автор

Oh never realized to use it like that.. :D you are a great guide to me .. Thanks man ..

AceofInfo
Автор

I was reading about these in a book and I wasn't understanding it at all! this makes so much more sense, thanks!

sayitbarberry
Автор

Dude you're amazing I literally thought some song is also playing from other window and i went through every window to check where that song is coming from lol

TheArtDiaries
Автор

I haven't heared sbout these before. Thank you so much for the video!

emuelvassallo
Автор

thx notification bouta learn something now today now🔔🔔

reewajadhikari
Автор

Super clear, thank you so much! Very helpful.

proalexv
Автор

Dear bro,
You are explaining everything very well and I request you to do more java practicing projects as well as advance java concepts as Soon as you can...I'm waiting..!🤩😍
Thanks in advance....!

typical_pronoobs
Автор

This is really cool! It can make code more concise!

gold
Автор

Let's go, finished the basics 1! time to move on to basics 2

thevictor
Автор

this is a cool tutorial! i didnt even know that was a thing! Next episode, can you do a tutorial on GUI graphics and stuff? like, drawing lines and figures in a GUI?

CollidaCube
Автор

Next video can u teach how to make a progress bar and make it load? Or maybe teach how to install window builder on eclipse. I already know how to get windows builder but many don’t.

fuzedcable
Автор

Alexxxx could you make a video teaching us how to do a lineal from minor to major sort to a multidimensional array??

thiagocabrera
Автор

Got an exam this morning, came over for some quick revision
👀😂

simsij
Автор

Java really has some cool tricks, but sometimes it's also really complicated haha. Great vid, keep going.

javacodingcommunity
Автор

You should do JavaFX GUI instead of Swing.

boatmcgoat
Автор

"String method" a.equals
Is this always used instead of == when using String variables???
*** first week learning from scratch any advice appreciated

TheBalloonTwister
Автор

hey alex can u explain some sorting algorithms :) waiting...!

Santhoshkumar-vhrt
Автор

"FartGenerator" ? great project :D

LordPunckyii
Автор

Thank you! I was watching a course on udemy and got stuck!

fortyarcade