小编use*_*104的帖子

Java中的Math.pow错误

我"显然"只是在学习编程,我似乎无法弄清楚要做什么才能摆脱这个错误.错误发生在第二行到最后一行 - 前一行:[System.out.print(+ windChill);]

这里(下面写的)是Java生成的"可能的提示"列表,用于我得到的错误:

**')' expected
method pow in class java.lang.Math cannot be applied to given types
  required: double,double
  found: double
method pow in class java.lang.Math cannot be applied to given types
  required: double,double
  found: double
operator + cannot be applied to double,pow
incompatible types
  required: doub...**

任何提示或澄清都将是最受欢迎的.请参阅下面的代码.先感谢您.

巴蒂尔

import java.util.Scanner;
public class Main {

   public static void main(String[] args) {
        // TODO code application logic here
        Scanner input = new Scanner(System.in);
        System.out.print("Enter a temperature between -58 and 41 …
Run Code Online (Sandbox Code Playgroud)

java

3
推荐指数
1
解决办法
7472
查看次数

标签 统计

java ×1