title: StringTokenizer array
body: <p>Java.
  So I want to input an array of integers and then print out the max value using StringTokenizer. I know how to do this using integers, but when I try to do it with an array the String to int command (Integer.parseInt) fails me - cannot convert from int to int[].</p>
  
  <pre><code>import java.io.BufferedReader;
  import java.io.IOException;
  import java.io.InputStreamReader;
  import java.util.StringTokenizer;
  
  public class Main {
      public static void main(String[] args) throws IOException {
          BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
          String strTmp;
          StringTokenizer strTok;
          while ((strTmp = in.readLine()) != null &amp;&amp; strTmp.length() != 0) {
              strTok = new StringTokenizer(strTmp);
  
          int[] c;
  
          c = Integer.parseInt(strTok.nextToken());
  
          int max = 0;
          for (int i = 0; i &lt; c.length; i++) {
              if (c[i] &gt; max) {
                  max = c[i];
              }
          }
          System.out.println(max);
      }
  }
  }
  </code></pre>
  
  <p>How do I go about solving this or are there other commands I should be using?</p>