Advertisement
bogolyubskiyalexey

Parsing command line args

Apr 26th, 2019
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. public static void main(String[] args) throws Exception {
  2. ....
  3.     if (args.length != 2) {
  4.         throw new  UnsupportedOperationException("Incorrect count of command line arguments");
  5.     }
  6.     final String folderWithLogs = args[0];
  7.     final String resultStatisticaFile = args[1];
  8. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement