You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try (MatFileReader reader = new MatFileReader("test.mat")) {
// do something with reader without the need to explicitly close() it
} catch (IOException e) {
e.printStackTrace();
}
For this syntax to work, MatFileReader and MatFileWriter should implement the java.lang.AutoCloseable interface.
The text was updated successfully, but these errors were encountered:
The following does not work on Java 8:
For this syntax to work, MatFileReader and MatFileWriter should implement the java.lang.AutoCloseable interface.
The text was updated successfully, but these errors were encountered: