是一只有梦想的咸鱼 2020-06-03 09:17 采纳率: 75%
浏览 171
已采纳

【超基础】计算矩形面积的输出问题?

/**
   A program that computes the area of a rectangle
   and prints it out.
   All variables should be of type double.
*/
public class RectArea
{
   public static void main (String[] args)
   {
      double width = 4.25;
      double height = 3.40;

      // Compute the area of the rectangle and print it out

      // Your work here
      System.out.printIn (4.25 * 3.40);

   }
}

错误提示:

Error:

/tmp/codecheck.ZARFRR8tpj/RectArea.java:16: error: cannot find symbol
      System.out.printIn (4.25 * 3.40);
                ^
  symbol:   method printIn(double)
  location: variable out of type PrintStream
1 error

疑问:是我的输出没有转换为double类型吗?

刚接触java,求教各位大大!

  • 写回答

1条回答

  • threenewbee 2020-06-03 10:50
    关注

    System.out.println

    ln是 line 的缩写
    In 是什么?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作