import java.io.*;
public class HH
{
public static void main(String[] args)throws IOException
{
BufferedReader stdin=
new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter a float:");
String inData=stdin.readLine();
float num=Float.parseFloat(inData);
System.out.println(num);
}
}
这哪错了,我改不来,求助
----------------解决方案--------------------------------------------------------
import java.io.*;
public class HH
{
public static void main(String[] args)throws IOException
{
BufferedReader stdin=
new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter a float:");
String inData=stdin.readLine();
float num=Float.parseFloat(inData);
System.out.println(num);
}
}
这哪错了,我改不来,求助
float num=Float.parseFloat(inData);
}
----------------解决方案--------------------------------------------------------