Effacer les filtres
Effacer les filtres

How to pass arguments to a java method?

1 vue (au cours des 30 derniers jours)
bbb_bbb
bbb_bbb le 2 Jan 2019
Modifié(e) : bbb_bbb le 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?

Réponses (0)

Catégories

En savoir plus sur Call Java from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by