考虑
List<String> explanationsteps = new ArrayList<String>();
explanationsteps.add("The prime factorization for each number is ");
当我 sysout 时,字符串看起来是这样的:
[The prime factorization for each number is]
由于 Array 类型,我想存储在本地 String 变量中,我可以在其中获得简单的输出,例如:
The prime factorization for each number is
没有方括号。