Created
September 28, 2016 00:08
-
-
Save alopresto/f71a85793cabcb22917546b7e504fe00 to your computer and use it in GitHub Desktop.
A Java class which prints the provided arguments to both System.out and System.err for debugging purposes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.apache.nifi.process; | |
import java.util.Arrays; | |
public class Process { | |
public static void main(String[] args) { | |
String allArgs = String.join(" ", Arrays.asList(args)); | |
System.out.println("[System out] Provided arguments: " + allArgs); | |
System.err.println("[System err] Provided arguments: " + allArgs); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment