title: Making a lexical Analyzer
body: <p>I'm working with a Lexical Analyzer program right now and I'm using Java. I've been researching for answers on this problem but until now I failed to find any. Here's my problem:</p>
  
  <p>Input:</p>
  
  <pre><code>System.out.println ("Hello World");
  </code></pre>
  
  <p>Desired Output:</p>
  
  <pre><code>Lexeme----------------------Token
  
  System [Key_Word]
  
  .       [Object_Accessor]
  
  out   [Key_Word]
  
  . [Object_Accessor]
  
  println  [Key_Word]
  
  (  [left_Parenthesis]
  
  "Hello World"    [String_Literal]
  
  )   [right_Parenthesis]
  
  ;  [statement_separator]
  </code></pre>
  
  <p>I'm still a beginner so I hope you guys can help me on this. Thanks.</p>