[Jama] Fwd: Jama Matrix Printwriter error

6 views
Skip to first unread message

Ronald Boisvert

unread,
Jun 5, 2018, 9:22:41 AM6/5/18
to ja...@list.nist.gov

-------- Forwarded Message --------
Subject: Jama Matrix Printwriter error
Date: Tue, 5 Jun 2018 16:03:31 +0530
From: Saswati Bhattacharjee <csesaswati at gmail.com>
To: ronald.boisvert at nist.gov

Hello Sir,
I am using JAMA matrix in my project. I need to write down a Jama matrix in text file. For that I write down this code.

package Xdata;
import Jama.Matrix;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;


public class File_r {
public static void main(String args[]) {
Matrix A =new Matrix(10,10);
try {
PrintWriter write1 =new PrintWriter(new File("/home/robotics//IdeaProjects/Data_arrange/src/Xdata/mu_X.txt"));
A.print(PrintWriter write1,9,6);// error in this line
}
catch(FileNotFoundException ex) {
System.out.println(ex);

}
}
}

But it throw errors:

/home/robotics/IdeaProjects/Data_arrange/src/Xdata/File_r.java
Error:(13, 32) java: ')' expected
Error:(13, 33) java: not a statement
Error:(13, 39) java: ';' expected

Please help me to solve this problem

Thank You

Saswati Bhattacharjee


Reply all
Reply to author
Forward
0 new messages