JavaRush /Java Blog /Random EN /Main method. How to pass file names in main() parameters?...
Miller777
Level 21

Main method. How to pass file names in main() parameters?

Published in the Random EN group
Found in one of the tasks (not on Javarush): There is a task - a small program in Java. One of the conditions: launching the application via public static void main(String[] args), args[] parameters: input data file, file for recording the response. I can’t figure out how to pass file names to args[]: input.txt, jutput.txt. Please tell me, if possible, with an example.
Comments
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION