Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Learn the Java ternary operator in 5 minutes! ❔
Play lesson

Java tutorial for beginners ☕ - Learn the Java ternary operator in 5 minutes! ❔

5.0 (4)
40 learners

What you'll learn

This course includes

  • 12 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

#java #javatutorial #javacourse public class Main { public static void main(String[] args) { // ternary operator ? = Return 1 of 2 values if a condition is true // variable = (condition) ? IfTrue : IfFalse; int number = 10; String evenOrOdd = (number % 2 == 0) ? "EVEN" : "ODD"; } }

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere