title: How do i check string to contain only letter(Uppercase & Lowercase) and at least one number only
body: <p>I'm wondering how do i write a regex to check a string contain at least one uppercase and numbers and does not contain any symbols?</p>
  
  <p>example:</p>
  
  <pre><code>String str = "%$!@asdas"
  
  String str2 = "He110W0rLd"
  </code></pre>
  
  <p>I want it to reject <code>str</code> however accept <code>str2</code>.</p>
  
  <p>It give me this JEES
  <a href="https://i.stack.imgur.com/vOxeT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vOxeT.png" alt="enter image description here"></a></p>