先上代码 import java.util.*; public class Solution { /** * * @param n int整型 * @return string字符串ArrayList */ private ArrayList<String> res; public ArrayList<String> generateParenthesis (int n) { res = new ArrayList<>(); recursion(n, n,...