import java.io.*;
public class Example
{
public static void main(String ards[])
{
long x=5678;
System.out.println("%f",x);
}
}我编译的时候,老是显示System.out.println("%f",x);有问题!那里出错呀~!
public class Example
{
public static void main(String ards[])
{
long x=5678;
System.out.println("%f",x);
}
}我编译的时候,老是显示System.out.println("%f",x);有问题!那里出错呀~!
看看jdk中类PrintStream的println函数,
没有System.out.println("%f",x);这种形式
void println(long x)
Print a long and then terminate the line.