Six Stars

ERROR SHOWING LIKE "Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \ )"

 I am getting the following error

"Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \ )"  

Screenshot (929).png

I don't know how to handle that error.

1 ACCEPTED SOLUTION

Accepted Solutions
Ten Stars

Re: ERROR SHOWING LIKE "Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \ )"

One of your components contains a string with a \ character. That is used as an escape character in Java strings. If you want a literal \ in your string, you need to escape the escape character and type \\
2 REPLIES
Moderator

Re: ERROR SHOWING LIKE "Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \ )"

Hello,

When you get some compile errors, please check your "Code" tab in your job. There will be your compile error highlighted in red line.

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Ten Stars

Re: ERROR SHOWING LIKE "Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \ )"

One of your components contains a string with a \ character. That is used as an escape character in Java strings. If you want a literal \ in your string, you need to escape the escape character and type \\