Created
September 17, 2019 15:41
-
-
Save youngjinmo/db84ddc0682a533458f7083f296d2e6a to your computer and use it in GitHub Desktop.
문자열 배열을 문자열로 변환하는 방법 (String[] ➡️ String)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
public class strArr2String { | |
public static void main(String[] args) { | |
String data = "Hello World"; | |
String[] temp = data.split(""); | |
String changed = ""; | |
for (int i = 0; i < temp.length; i++) { | |
changed += temp[i]; | |
} | |
System.out.println(changed); | |
// Hello World | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment