Math.pow errors in Java

后端 未结 5 2032
天涯浪人
天涯浪人 2021-01-19 04:02

I am \'obviously\' just learning programming and I can\'t seem to figure out what to do in order to get rid if this error. The error is on the second to the last line - the

5条回答
  •  北荒
    北荒 (楼主)
    2021-01-19 04:21

    The Math.pow function needs two arguments, the base and the power. You are only passing in one value - the product of windSpeed and 16. I think you probably mean:

    Math.pow(windSpeed, 16)
    

提交回复
热议问题