title: Java Helper Class - Different forms of syntax
body: <p>I am new to java, and I'm learning from lynda.com.</p>
  
  <p>In the tutorial videos on lynda, they write:</p>
  
  <pre><code>char 'a1' = a;
  System.out.print(Character.toUpperCase(a1));
  </code></pre>
  
  <p>However when I try to write this on IntelliJ IDEA the following code must be written:</p>
  
  <pre><code>char 'a1' = a;
  System.out.print(java.lang.Character.toUpperCase(a1));
  </code></pre>
  
  <p>When trying to write the same code, why do I need to write java.lang.Character (in the longer form) rather than Character? </p>
  
  <p>I have the same problem when trying to use the other helper class, for example:</p>
  
  <pre><code>double d = 124.5;
  </code></pre>
  
  <p>Lynda website code: <code>byte bS = Double.byteValue(d);</code></p>
  
  <p>My code:            <code>byte bS = Double.valueOf(d).byteValue;</code></p>
  
  <p>How can I fix this? </p>