package io;
import java.io.*;
public class UserIO {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
char c;
try {
c = (char)br.read(); //Input a character from user
} catch (IOException e) {
e.printStackTrace();
}
System.out.println("c: " + c);
}
}
The program is unable to compile.
Error: The local variable c may not have been initialized