in Run Configurations-> Arguments-> Program arguments, I have a folder path D:estPicFolder. But in the main method:
Run Configurations
Arguments
Program arguments
D:estPicFolder
imgPath=args[0];
imgPath is always D:estPicFolder , which is missing the last .
How can I fix this?
---------------update:
If I use D:/testPicFolder/, it works fine. But I use D:estPicFolder since works both for Windows and Linux.
D:/testPicFolder/
1.4m articles
1.4m replys
5 comments
57.0k users