title: Why this Java code by clicking on button NUM0-9 doesn't print out the character?
body: <p>Why this Java code by clicking on button NUM0-9 doesn't print out the character?</p>
  
  <pre><code>Code:
  switch(this.getGameAction(keyCode)){
              case Canvas.KEY_NUM2:
                  System.out.println('A');
                  break;
  
              case Canvas.KEY_NUM0:
                  System.out.println('B');
  
          }
  </code></pre>
  
  <p>Even no Error appears. Why?</p>