title: Is there any way to solve the following problem of incorporating string tokenizer in Buffered Reader?
body: <blockquote>
  <p><strong>Problem Statement:</strong> Chef wants to appear in a competitive exam. To take the exam, there are following requirements: Minimum age limit is X (i.e. Age should be greater than or equal to XX).
  Age should be strictly less than Y.
  Chef's current Age is A. Find whether he is currently eligible to take the exam or not.</p>
  <p><strong>Output format:</strong> For each test case, output YES if Chef is eligible to give the exam, NO otherwise. You may print each character of the string in uppercase or lowercase (for example, the strings YES, yEs, yes, and yeS will all be treated as identical).</p>
  <p><strong>Constraints:</strong></p>
  <ul>
  <li>1≤T≤1000</li>
  <li>20≤X&lt;Y≤40</li>
  <li>10≤A≤50</li>
  </ul>
  </blockquote>
  <p>Below is my code for age limit problem in codechef:</p>
  <pre><code>import java.util.*;
  import java.lang.*;
  import java.io.*;
  
  class Codechef
  {
      public static void main (String[] args) throws java.lang.Exception
      {
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          int i,x,y,a,n = Integer.parseInt(br.readLine());
            for (i = 0; i&lt;n ;i++)
                      {
                          StringTokenizer st = new StringTokenizer(br.readLine());
                          x =Integer.parseInt(st.toString());
                          y =Integer.parseInt(st.nextToken(&quot; &quot;).toString());
                          a =Integer.parseInt(st.nextToken(&quot; &quot;).toString());
                          if (20&lt;= x &amp;&amp; x&lt;y &amp;&amp; y&lt;= 40 &amp;&amp; 10 &lt;=a &amp;&amp; a&lt;= 50)
                              {   
                                  if (a &gt;= x &amp;&amp; a &lt; y)
                                      System.out.println (&quot;Yes&quot;);
                                  else 
                                      System.out.println (&quot;No&quot;);
                              }
                          
                      } 
              }
      }
  </code></pre>
  <p>Can anybody help me with  why is there a problem in <code>x =Integer.parseInt(st.toString());</code>?</p>