incompatyble types when compiling
hey Im new here! i just have this promblem with this program
import java.io.*;
public class vocalmet
{
private staticBufferedReader stdIn=new
BufferedReader(new InputStreamReader(System.in));
private static PrintWriter stdOut =new
PrintWriter(System.out,true);
public static char met(char b)
{
char met= b;
{switch (met){
case 'a':
stdOut.println("Vocal");
break;
case 'e':
stdOut.println("Vocal");
break;
case 'i':
stdOut.println("Vocal");
break;
case 'o':
stdOut.println("Vocal");
break;
case 'u':
stdOut.println("Vocal");
break;
default:
stdOut.println("Eso es una consonante");
return met=b;
}
}
}
public static void main (String args[]) throws IOException
{
char b;
stdOut.println("Escribe una letra, tratare de adivinar si es vocal o no");
b= stdIn.readLine();
int d= met(b);
}
}
I thinki it should serve but then I compile it and have this
C:\vocalmet.java:41: incompatible types
found: java.lang.String
required: char
b= stdIn.readLine();
^
1 error
I would really appreciate some feed back
=S

