Frequently Asked Java Program 05: Palindrome String | How to Check Given String is Palindrome or Not

preview_player
Показать описание
Topics :
---
1) Palindrome String
2) How to Check Given String is Palindrome or Not

#########################
Udemy Courses:
#########################

Manual Testing+Agile with Jira Tool
************************************

Selenium with Java+Cucumber
********************************

Selenium with Python & PyTest
********************************

Selenium with python using Robot framework
****************************************

API Testing(Postman, RestAssured & SoapUI)
*****************************************

Web & API Automation using Cypress with Javascript
********************************************

Playwright with Javascript
**************************

Jmeter-Performance Testing
************************

SDET Essencials(Full Stack QA)
*************************

Appium-Mobile Automation Testing
************************************

Java Collections
*****************

Python Programming
*********************

Cucumber BDD Framework
***************************

Protractor with Javascript
***************************

####################################
Youtube Playlists:
####################################

Manual Testing & Agile
***********************

SQL
*************************

linux & Shell Scripting
**********************

Java
**********************

Selenium With Java+Cucumber
********************************

Python
********************************

Selenium With Python,Pytest&Behave
***************************************

Selenium With Python Using Robert Framework
(Web&API Testing)
*************************************************

API Testing (Postman,SoapUi,&Rest Assured)
**********************************************

Mobile App Testing Appium
****************************

Performance Testing Jmeter
*******************************

Maven,Jenkins,Git,Github,CI/CD
*******************************

SQL,DB Testing&ETL,Bigdata
*******************************

JavaScript Based Automation Tools
********************************

Selector Hub Tools
********************

GraphQL
******************

Cypress API Testing
********************

Cypress Web Testing
**********************

Playwright with Javascipt
**************************

#PalindromeCheck
#StringPalindrome
#PalindromeTesting
#PalindromeOrNot
#CheckPalindrome
#StringReverse
#PalindromeAlgorithm
#PalindromeLogic
#PalindromeValidation
#PalindromeAnalysis
#StringMirror
#PalindromeVerification
#PalindromeString
#StringSymmetry
#PalindromeProcedure
#PalindromeEvaluation
#StringIsPalindrome
#PalindromeSolution
#PalindromeApproach
#StringPalingram
#PalindromeInspection
#StringIsMirror
#PalindromeExploration
#PalindromeResolution
#StringPaliCheck
#PalindromeProcess
#StringPalindromeTest
#PalindromeExamination
#StringReverseCheck
#PalindromeAssessment
#PalindromeMethod
#StringPaliValidation
#PalindromeInquiry
#StringPalindromeCheck
#PalindromeDetermination
#PalindromeAnalyze
#StringIsMirrorCheck
#PalindromeInvestigation
#StringPaliVerify
#PalindromeProcedure
#StringPalindromeAnalysis
#PalindromeInspection
#StringReverseValidation
#PalindromeEfficacy
#StringPaliAssessment
#PalindromeStudy
#StringIsPalindromeTest
#PalindromeReview
Рекомендации по теме
Комментарии
Автор

Thank you very much sir, I got job because of UR frequently asked questions Playlist as java developer videos

praveenkumarkappala
Автор

In Java you can’t use == operator for string comparisons .. it’s not recommended..rather use .equal method

vinodthube
Автор

import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String s = in.nextLine();
String s1 = s;
String rev = "";
int length = s.length();
for (int i = length - 1; i >= 0; i--) {
rev = rev + s.charAt(i);
}
if (s1.equals(rev)) {

System.out.println("YES");
}
else
System.out.println("NO");
}
}

krikusin
Автор

Thanks, i was learnt with C++ where you could do 'if( cond1 == cond2 )' and in Java i was getting No, even though the answer was supposed to be Yes, because i was inserting a Palindrome, but when i used .equals() then the program was working fine. Weird, but thanks!

klevialushi
Автор

You explain it the best way thanks a lot sir...

gauri
Автор

I think These all programs will help me to crack the job in future

nonegirl
Автор

in Java you can’t use == operator for string comparisons
i tried it == it was not working the if loop i was getiting error for 2 hours then i changed it to .equals then it worked
i was about to doubt on my self that iam not for coding
finally i got it

gudasairamreddy
Автор

So quick and easy, thank you so much!!

taqdmageranger
Автор

good.. It is better to use .. rather than .equals(str) otherwise for Pop => it will give not a palindrome string because of UpperCase..

kennyi
Автор

Thanks a lot for such informative video class thanks a

arabindamohanty
Автор

Thank you sir for wonderful explanation

akshatmangal
Автор

In Java you can't use "==" operator for string comparisons, rather use ".equals()" method.

luzheso
Автор

Sir we can not use == operator to compare string

sachinkharwar
Автор

Can you recheck the code sir I am not getting proper output 😞

KAGU_SRINATH
Автор

It's better to use equalsignorecase 😊

poojak
Автор

sir how to reverse a array that are separated by spaces and other special characters

inchara-yq
Автор

why are we using org_str to store original string, we are not changing it's value so we can directly use str here. Can someone explain?

shivam_diwan
Автор

Excellent .Please can you add few interview program for collections

rumanir
Автор

we can use str directly instead taking org = str

madhurgoyal
Автор

What will we do if we write Madam instead of MADAM ? it showing as not palindrom..

How to ignore camel casing ?

BhaveshPanchal