HOW TO ESCAPE SPECIAL CHARACTERS IN JAVA? || PRINT STRINGS WITH DOUBLE QUOTES

preview_player
Показать описание
In this video, I have explained - HOW TO ESCAPE SPECIAL CHARACTERS IN JAVA? || PRINT STRING WITH DOUBLE QUOTES

~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Naveen AutomationLabs Paid Courses:
Java & Selenium:

Java & API +POSTMAN + RestAssured + HttpClient:
Рекомендации по теме
Комментарии
Автор

finally a video that explains how to print double " xyz " ! tkx!

yowthubert
Автор

If this will ask in the interview then we will definitely get stuck or give incorrect answer. It looks easy, but it wasn't. Thanks Naveen sir😁

bhavikapatel
Автор

After knowing the answer it looks so simple... But before that, just keep scratching your head 😁😁. Keep going. Your videos are very inspiring

aveasphotography
Автор

Thank you bro keep make more videos on interview questions that may help to many people's

maheshreddym
Автор

Thank you Naveen for wonderful videos 🙏🏽

XboxPlayShorts
Автор

I was struggling with 1 xpath where I have to validate warning msg contain *Shareholder's Request* text... due to single quote I was facing a lot problem... This video help me today...
Actually I made dynamic xpath like
//Msgbox[contains(text(), ' "+variable+" ')]

For normal text this is working absolutely fine but for text having special char in it like single Wouter, comma ect that above piece of xpath was not working...
But now referring to this video I solve that issue ✨ Naveen sir OP 🎉

SameerKumar-yuxi
Автор

I new this but this is helpful for many folks

sureshgarine
Автор

So backslash is needed when we want to escape double quote.

SurendraGurjar
Автор

Hi Naveen, Cypress or selenium which one is good..we r starting new project..pls advice

lincygeorge
Автор

Hey Hi Naveen,
Can u pls help me in reading an XML file, and converting it as a string instruments a single line, to run in webservice using java

shilpa
Автор

I want to print \"hello\" And want to pass it to json since json will not be validated if it has value having double quotes in it..
Can you please help me with this.

prajaktakale
Автор

Hi Naveen, I am using java script executor and my script is "document.evaluate(\""+ myXPath + "\", document, null, XPathhResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.innerHTML". But I string am getting backslashes

ravireddyr
Автор

Hi Naveen,
I have one question which was asked in some start-up.
Given list of Integers we find the largest product or sum of two numbers
ex: (1, 2, 3, 4, 5)
4*5= 20, 4+5= 9. so here product of 2 integers is 20 so 20 is the answer

prashanthachary
Автор

Hi Naveen, I got struck in one program, input: need to Replace the ASCII in the even positions of the string with corresponding characters.


trying below code: for case char to ASCII : but not able to do reverse case.
StringBuilder sb = new StringBuilder();


for(int j=0;j<str.length();j++) {

if(j%2!=0) {

int as = str.charAt(j);
sb.append(as);

//str.insert(j, as);


}
else {
sb.append(str.charAt(j));
//str.insert(j, str.charAt(j));
}

rasna
Автор

Dude you don't need 10 minutes for this.

maheshtambe