Try this

public class abc{
public static void main(String args[])
{
char ch=' ';
System.out.println("shoiufosdjf");
try
{
ch = (char)System.in.read();
}
catch(Exception e){
}
if (ch=='a')
{
System.out.println("apple");
}
else if (ch=='b')
{
System.out.println("bicke");
}
else if (ch=='c')
{
System.out.println("cake");
}
}
}
Your need to use "==" instead of "="
Kelly