How do I initialize an empty array / vector of strings, and then push strings into

julia> t = String[]
String[]

julia> push!(t,"a string")
1-element Array{String,1}:
 "a string"

julia> t
1-element Array{String,1}:
 "a string"

Another way

julia> w = Vector{String}()
String[]

julia> push!(w,"another string")
1-element Array{String,1}:
 "another string"

julia> w
1-element Array{String,1}:
 "another string"
5 Likes