java基礎之String類

建立字符串 char[] helloArray = {'H','e','l','l','o'}; String helloString = new String(helloArray); System.out.println(helloString); //Hello 字符串鏈接 字符串的鏈接能夠經過concat()方法或"+"操做來連接。html System.out.println(
相關文章
相關標籤/搜索