Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@alopresto
Created September 28, 2016 00:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alopresto/f71a85793cabcb22917546b7e504fe00 to your computer and use it in GitHub Desktop.
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
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