Python
Database
Operating System
Programming
Linux Command
Toolkit
Other
Keyboard Shortcuts
Open sidebar
Open user menu
Guess
Search
Dart
HTML Canvas
Redis
Bash
JavaScript
Java
Java Conditionals
Ternary operator
int a = 10; int b = 20; int max = (a > b) ? a : b; // Outputs: 20 System.out.println(max);
Comments
Add your comment
Post
Related
Misc
Java Collections Framework
Java Loops
Java Conditionals
Java Arrays
Java Strings
Getting Started