Join an array of strings into a single string in Julia - join() Method Last Updated : 12 Jul, 2025 Comments Improve Suggest changes Like Article Like Report The join() is an inbuilt function in julia that is used to join an array of strings into a single string. The specified delimiter is used to insert in between the returned strings. Syntax: join([io::IO, ] strings, delim, last) Parameters: [io::IO, ] strings: Specified string.delim: Specified delimiter.last: If last is given then this last parameter is inserted in between the last two strings. Returns: It returns a new single string. Example 1: Python # Julia program to illustrate # the use of String join() method # Joining an array of strings into a single string. println(join(["Geeks", "for", "Geeks"])) println(join(["Geeks", "for", "Geeks"], "-")) println(join(["Geeks", "for", "Geeks"], "+")) println(join(["Geeks", "for", "Geeks"], "-", "+")) println(join(["Geeks", "for", "Geeks", "is", "CSE", "portal"], "-", "+")) Output: GeeksforGeeks Geeks-for-Geeks Geeks+for+Geeks Geeks-for+Geeks Geeks-for-Geeks-is-CSE+portal Example 2: Python # Julia program to illustrate # the use of String join() method # Joining an array of strings into a single string. println(join(["1", "2", "3"])) println(join(["1", "2", "3"], "-")) println(join(["1", "2", "3"], "+")) println(join(["1", "2", "3"], "-", "+")) println(join(["1", "2", "3", "4", "5", "6"], "-", "+")) Output: 123 1-2-3 1+2+3 1-2+3 1-2-3-4-5+6 Comment More infoAdvertise with us Next Article Reshaping array dimensions in Julia | Array reshape() Method K Kanchan_Ray Follow Improve Article Tags : Julia Similar Reads Splitting string into array of substrings in Julia - split() and rsplit() Method The split() is an inbuilt function in julia which is used to split a specified string into an array of substrings on occurrences of the specified delimiter(s). Syntax: split(str::AbstractString, dlm; limit::Integer, keepempty::Bool) or split(str::AbstractString; limit::Integer, keepempty::Bool) Para 2 min read Remove starting and ending characters of string in Julia - chop() Method The chop() is an inbuilt function in julia which is used to remove the last character from the specified string. If this function use head and tail parameter, it removes the specified number of first head and the last tail characters from the string. Syntax: chop(s::AbstractString, head::Integer, ta 1 min read Remove a single trailing newline from a string in Julia - chomp() Method The chomp() is an inbuilt function in julia which is used to remove a single trailing newline from a string. Syntax: chomp(s::AbstractString) Parameters: s::AbstractString: Specified string. Returns: It returns a new string after removal of a single trailing newline. Example 1: Python # Julia progra 1 min read Get a substring of specified length from a string in Julia - SubString() Method The SubString() is an inbuilt function in julia which is used to return a part of the specified parent string s within range i:j or r, where i, j and r is given as the parameter. Syntax: SubString(string::AbstractString, i::Integer, j::Integer) or SubString(string::AbstractString, r::UnitRange) Para 2 min read Reshaping array dimensions in Julia | Array reshape() Method The reshape() is an inbuilt function in julia which is used to return an array with the same data as the specified array, but with different specified dimension sizes. Syntax: reshape(A, dims) Parameters: A: Specified array. dims: Specified dimension. Returns: It returns an array with the same data 2 min read Get a substring of specific size from end of a string in Julia - last() Method The last() is an inbuilt function in julia which is used to return a string consisting of the last n characters of the specified string, where n will be passed as parameter. Syntax: last(s::AbstractString, n::Integer) Parameters: s::AbstractString: Specified string. n::Integer: Specified integer val 1 min read Like