Skip to content

Instantly share code, notes, and snippets.

@youngjinmo
Created September 17, 2019 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save youngjinmo/db84ddc0682a533458f7083f296d2e6a to your computer and use it in GitHub Desktop.
Save youngjinmo/db84ddc0682a533458f7083f296d2e6a to your computer and use it in GitHub Desktop.
문자열 배열을 문자열로 변환하는 방법 (String[] ➡️ String)
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