1import java.io.IOException;
2import java.io.FileWriter;
11 fs =
new FileWriter(name +
".sta");
12 fd =
new FileWriter(name +
".lst");
29 public int message(
int smsg,
int dmsg,
int nmsg, String[] msgv) {
31 for (
int i = 0; i < smsg; i++)
33 System.out.println(msgv[i]);
34 fs.write(msgv[i] + System.lineSeparator());
37 for (
int i = 0; i < dmsg; i++)
39 fd.write(msgv[i] + System.lineSeparator());
49 public int errorMessage(
int rowno,
int colno,
int posno, String msg) {
52 errormsg +=
"Variable " + colno +
" : ";
54 errormsg +=
"Equation " + rowno +
" : ";
56 errormsg +=
"Variable " + colno +
" appearing in Equation " + rowno +
" : ";
59 fs.write(errormsg + System.lineSeparator());
60 fd.write(errormsg + System.lineSeparator());
int message(int smsg, int dmsg, int nmsg, String[] msgv)
int errorMessage(int rowno, int colno, int posno, String msg)
MessageHandler(long cPtr, boolean cMemoryOwn)