Hi
Java Experts,
I need to concatenate a
string variable to form a full path of a new file to be referenced by later reads but failed to form the complete path due to multiple words with space in the string variable. Below is the code snippet which the full path has failed to materialize:
As a result, could someone advice me on how to concatenate multiple strings where the variable string such as country is made up of more than one
word separated by space. It is necessary to use double quotes in general to surround them such as the following example so the operating system knows how to put the full path together:
“C:\United States of America\sports.txt”
I am running JDK 7 on Windows XP & 7 platform.
Your assistance would be much appreciated.
Thanks,
Jack