title: Convert String to Text (Java Hadoop)
body: <p>I have the following problem:</p>
  
  <p>I want to split a Text value that I get from a file.</p>
  
  <p>The value format is "12,23"</p>
  
  <p>I want to take the first value in a variable a=12 and the second value in a variable b=23.</p>
  
  <p>I use String.split(","); to do that. The problem is that I want to assign these values in Text variables.</p>
  
  <p>I tried the following and it doesn' t work</p>
  
  <pre><code>Text text=(Text) a; 
  </code></pre>