How to write the percentage symbol on a string in Java?

Asked

Viewed 3,345 times

4

How to make the string accept the percentage symbol '%' ?

  • 2

    He just tried to escape with \ ?

  • 1

    worked... strange, tried before, and had not worked!!

  • 1

    Valeu @bfavaretto

1 answer

4


To escape the % use two percent %%

Browser other questions tagged

You are not signed in. Login or sign up in order to post.