📜  java将char数组放入字符串 - Java代码示例

📅  最后修改于: 2022-03-11 14:52:27.448000             🧑  作者: Mango

代码示例1
char[] arr = { 'p'," ",'q', 'r', 's' };
      String str = String.valueOf(arr);
      System.out.println(str);//"p qrs"