Error in output
import java.io.*;
class FileOutput_Add {
public static void main(String args[]) {
try {
int a,b;
FileWriter FileOut = new FileWriter("OutPutFile.txt");
BufferedWriter Output = new BufferedWriter(FileOut);
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
a = (int) br.read();
b = (int) br.read();
int c = a b;
Output.write(c);
Output.close( );
}
catch (Exception e) {
System.err.println("Error: " e.getMessage());
}
}
}
this program is executing without any errors but the destination file where the addition of two numbers getting stored there i am getting an alphabets which is equivalent to the number....