Currently I am using this to create a string array
New String() {" ", ".", ";"}
Is there another way that does not require so many characters, say without the New String() part perhaps?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The compiler can usually infer the type of the array from its elements, e.g.
Note – this doesn’t work when the array is empty, because there are no elements to examine.