Title: RE: [jdjlist] Re: StreamTokenizer

nextToken only returns an int which specifies whether the
token is a word, or number, EOL, EOF or an actual character value.
If the token is a number, the token is read as a double.


-----Original Message-----
From: Jason Carlamere [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 2:04 PM
To: JDJList
Subject: [jdjlist] Re: StreamTokenizer



sorry not nextVal
try nextToken



                                                                                                                  
                    "Saler, Jeff"                                                                                 
                    <jsaler              To:     JDJList <[EMAIL PROTECTED]>                            
                    @ball.com>           cc:                                                                      
                                         Subject:     [jdjlist] Re: StreamTokenizer                               
                    05/09/2002                                                                                    
                    01:46 PM                                                                                      
                    Please                                                                                        
                    respond to                                                                                    
                    JDJList                                                                                       
                                                                                                                  
                                                                                                                  






I can't seem to find the nextVal method in
the StreamTokenizer class.� What version of
Java are you refering to?



-----Original Message-----
From: Jason Carlamere [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 09, 2002 1:14 PM
To: JDJList
Subject: [jdjlist] Re: StreamTokenizer


just off the top of my head i would say

Obect value = st.nextVal();
if(value instanceof Integer)
���� return true;
if(value instanceof Float)
���� return true


������������������� "Saler, Jeff"
������������������� <jsaler������������� To:���� JDJList
<[EMAIL PROTECTED]>
������������������� @ball.com>���������� cc:
���������������������������������������� Subject:���� [jdjlist]
StreamTokenizer
������������������� 05/09/2002
������������������� 01:08 PM
������������������� Please
������������������� respond to
������������������� JDJList





Does anyone have an idea as to how to tell whether a number read using a
StreamTokenizer� (st.nval) is an integer or a floating-point number?
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm



To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm




To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to