From: Bertram Scharpf Date: 2009-12-17T01:03:18+09:00 Subject: Re: a program error Hi, Am Mittwoch, 16. Dez 2009, 16:38:07 +0900 schrieb Teodor Carstea: > hi, all! my compiler doesn't like the "minus" in line 21, it's like: > > /home/cristi/NetBeansProjects/RubyApplication3/lib/helic.rb:21: > undefined method `-' for "":String (NoMethodError) > > [...] > 20 x=xspeed*time > 21 y=yspeed*time-4.9*time**2 > [...] Put something like this before line 21 and the cause of the error is obvious: puts [ xspeed, yspeed, time].inspect Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany * Discover String#notempty? at .