SyntaxFix
Write A Post
Hire A Developer
Questions
You're on the right track. The two constructors accept arguments, or you can specify them post-construction with ProcessBuilder#command(java.util.List) and ProcessBuilder#command(String...).
ProcessBuilder#command(java.util.List)
ProcessBuilder#command(String...)