title: how to write % in a string format in Java - Android Studio
body: <p>I am trying to show a percentage but how do I show % sign using string format?
  Here's my line of code</p>
  
  <pre><code>precent.setText(String.format(Locale.getDefault(),"%.1f", precentNum))
  </code></pre>
  
  <p>I mean how do I put a percentage sign at the end of the text? couldn't find an answer when I searched.</p>