查一下jdk帮助文档不就可以了吗?

解决方案 »

  1.   

    /**
         * If the current token is a number, this field contains the value
         * of that number. The current token is a number when the value of
         * the <code>ttype</code> field is <code>TT_NUMBER</code>.
         * <p>
         * The initial value of this field is 0.0.
         *
         * @see     java.io.StreamTokenizer#TT_NUMBER
         * @see     java.io.StreamTokenizer#ttype
         */
        public double nval;
      

  2.   

    eolIsSignificant :spell wrong (eol'l'sSignificant)StreamTokenizer.TT_NUMBER   :st.TT_NUMBERStreamTokenizer.TT_WORD    :st.TT_WORD
      

  3.   

    pay attention to IOException