Topic: [求助]这个程序不能编译 |
Print this page |
1.[求助]这个程序不能编译 | Copy to clipboard |
Posted by: mitnickcbc Posted on: 2002-12-11 14:37 public class CircleCircumference { public static void main(String args[]) { int diameter = Integer.parseInt(args[0]); double circumference = Math.PI * diameter; System.out.println("Circumference = ",circumference); } } 出错信息如下: C:\j2sdk1.4.1_01\myprogram\CircleCircumference.java:7: cannot resolve symbol symbol : method println (java.lang.String,double) location: class java.io.PrintStream System.out.println("Circumference = ",circumference); ^ 1 error |
2.Re:[求助]这个程序不能编译 [Re: mitnickcbc] | Copy to clipboard |
Posted by: scottding Posted on: 2002-12-11 15:07 System.out.println("Circumference = ",circumference); 上面这一行改为 System.out.println("Circumference = "+circumference); |
3.Re:[求助]这个程序不能编译 [Re: mitnickcbc] | Copy to clipboard |
Posted by: mitnickcbc Posted on: 2002-12-11 15:58 谢谢 |
4.Re:[求助]这个程序不能编译 [Re: mitnickcbc] | Copy to clipboard |
Posted by: scottding Posted on: 2002-12-11 16:14 不客气的,有什么问题尽管在这里提出来。大家会帮忙的。 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |