有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!


共 (1) 个答案

  1. # 1 楼答案

    如果我正确理解了,您可能需要考虑使用^{}

    This class is used to create operating system processes.
    Each ProcessBuilder instance manages a collection of process attributes. The start() method creates a new Process instance with those attributes. The start() method can be invoked repeatedly from the same instance to create new subprocesses with identical or related attributes.

    文档中的用法示例:

    Process p = new ProcessBuilder("myCommand", "myArg").start();