Filter löschen
Filter löschen

How to pass arguments to a java method?

1 Ansicht (letzte 30 Tage)
bbb_bbb
bbb_bbb am 2 Jan. 2019
Bearbeitet: bbb_bbb am 3 Jan. 2019
I'm trying to implement code from
I am interested in how to pass arguments to this function:
fileUtils.moveToTrash( new File[] {new File("c:/temp/dummy.txt") });
i.e. if my MATLAB code would be:
fileobj=java.io.File('c:\temp\dummy.txt');
fileUtils = com.sun.jna.platform.FileUtils.getInstance();
fileUtils.moveToTrash(... Some arguments ...);
what arguments should be in the last statement?

Antworten (0)

Kategorien

Mehr zu Call Java from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by