import java.io.*;
public class erere
{
public static void main(String[]args)throws IOException
{
BufferedReader cin=new BufferedReader(new InputStreamReader(System.in));
String a;
Double c;
Float e;
char d;
System.out.print("Enter a:"+"");
a=cin.readLine();
System.out.print("Enter c:"+"");
c=Double.parseDouble(cin.readLine());
System.out.print("Enter d:"+"");
d=cin.readLine();
System.out.print("Enter e:"+"");
e=Float.parseFloat(cin.readLine());
}
}
--------------------Configuration: <Default>--------------------
C:\projj\erere.java:21: incompatible types
found : java.lang.String
required: char
d=cin.readLine();
^
1 error
Process completed.
I don't know what's the problem really is. please help me =(