Current Forum: 15-211 Main Forum |
Date: Wed Sep 5 2001 4:17 pm |
Author: Scherer, Sebastian <sebastian.scherer@cs.cmu.edu> |
Subject: Re: HW1 error |
|
|
Hi! I guess there is an error in DoIt.java When a string concat is called with the + sign and the value that should be concatnated is not of type string it tries to call one of the valueOf() operators. The String class contains default valueOf() functions for most primitive types, but not for Floats. So to get the program working I changed it to Float.toString(pn.compute()) for Example is that correct? Thank you
Basti |
|