Java Character Comparison - Comparing char Variables by Example - Java Programming Tutorial

preview_player
Показать описание
You can compare char variables (characters) with relational operators

Characters are stored in memory using the Unicode character format
Unicode is stored as a sixteen (16) bit number.

Characters are ordinal, meaning they have an order in the Unicode character set and can be compared to each other

Please SUBSCRIBE, and check out more Java Programming Tutorials!

Java if else Statements

Java Relational Operators

Java Multi-branch if-else-if Statement

Java Nested if-else Statements

Java Distinct If Statements

Java Logical Operators

Java Short Circuit Evaluation

Java Switch Statement

Java Precedence Rules for Logical and Relational Operators

Java Boolean Data Type

Java String Comparison Methods

String Access Methods

String Modifier Methods

The Conditional Expression

Floating-point Comparison

Character Comparison

Displaying Currency in Java

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

Please SUBSCRIBE! More programming videos coming soon! ✌️

Appficial
Автор

Well done.
I was applying string comparison methods and getting error again and again.
I have searched on Google but Google was giving me only string methods.
Thanks for this short but important video on characters comparison.

roshandhaker
Автор

can we use if(ch!='?') for two character comparison?
where ch is a character

adya
Автор

YOU FUCKING
IF I GET A WORK, I'LL SEND YOU MONEY!!!!

pablocau