From: Randolph Wang <rywang@CS.Princeton.EDU>
Date: Sat, 21 Feb 2004 20:19:45 -0500 (EST)
To: mh@princeton.edu
Cc: randy_class@CS.Princeton.EDU
Subject: NBody

>  Hi, 
>   
>  I was trying this Nbody.java program, and right now I'm trying to read in 
>  the data from planets.txt.  when I run the program, it's giving me error 
>  about input type.  It's saying that the 2nd input, the radius of the 
>  universe, is being read as a string.  But if I change it to a string, then 
>  is there a way I can convert it back to an integer so it can be inputted 
>  correctly into Turtle.create?  And I seem to be having the same problem for 
>  the rest of the data.  Does java recognize 5.30e11 as an input for an 
>  integer?  b/c it only seems to be reading them as strings for me...  Any 
>  advice? 
>   
>  Thanks! 
>   
>  Michael 

You need to use a double type instead of an integer type.

Randy


NBody / Randolph Wang