How to compare two Strings in java?

preview_player
Показать описание
#learnwithkrishnasandeep #javacodinginterviewquestions #javaexamples #javaprograms #javatutorials #javaprogramming compare strings in java example,
compare strings in java alphabetically,
comparison string in java,
compare two strings in java,
compare 2 strings in java,
compare strings in java
Рекомендации по теме
Комментарии
Автор

What's the code for the following.
Here S1 and S2 are the input you need to get from user (dynamic). S1=ant, S2= matchNStr. Here the characters a and t are found in both S1 and S2. The output for the above example should be S2=mchNSr. Please help me to get the code in Java.

logeshwarikaviya
Автор

Why it is showing 14 for positive value ?

shruthikasiri
Автор

Hello sir,

I want program like -
Input - Priya Shyam Sharma
And output would be- Sharma P.S.

Can you please share the code with me?

amrutaabhale
Автор

Hello Friend how to compare a date 2019/03/08 and another 2019/03/20 and show in a jlabel that is overdue

javazantech
visit shbcf.ru