1import java.io.IOException;
2import java.io.FileWriter;
11 fs =
new FileWriter(name +
".sta");
12 fd =
new FileWriter(name +
".lst");
36 public int message(
int smsg,
int dmsg,
int nmsg, String[] msgv) {
38 for (
int i = 0; i < smsg; i++)
40 System.out.println(msgv[i]);
41 fs.write(msgv[i] + System.lineSeparator());
44 for (
int i = 0; i < dmsg; i++)
46 fd.write(msgv[i] + System.lineSeparator());
63 public int errorMessage(
int rowno,
int colno,
int posno, String msg) {
66 errormsg +=
"Variable " + colno +
" : ";
68 errormsg +=
"Equation " + rowno +
" : ";
70 errormsg +=
"Variable " + colno +
" appearing in Equation " + rowno +
" : ";
73 fs.write(errormsg + System.lineSeparator());
74 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)