Mike Rudolph
asked on
Here Document in Java
Experts,
Regarding the "here document," I was wondering if there was an equivalent way to do this in a high-level language like Java? I haven't been successful finding anything as of yet. I have included an example of a Perl script here document below:
print <<EOHeader;
You will be prompted for your name and other information. Please give complete answers to each question. To return to the menu without making an entry type q [Enter].
EOHeader
This output everything between the EOHeader tags without having to use four or five print commands.
Thank you.
Regarding the "here document," I was wondering if there was an equivalent way to do this in a high-level language like Java? I haven't been successful finding anything as of yet. I have included an example of a Perl script here document below:
print <<EOHeader;
You will be prompted for your name and other information. Please give complete answers to each question. To return to the menu without making an entry type q [Enter].
EOHeader
This output everything between the EOHeader tags without having to use four or five print commands.
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER