java string

Dpk dpk@egr.msu.edu
Mon, 15 Jan 2001 12:40:11 -0500


On Mon, Jan 15, 2001 at 12:36:43PM -0500, Marcel Kunath wrote:

   quotes insides strings. how do i prevent the error?
   
   String thestring = "mr doe said, "I love Linux"";
                                    ^
                                    |
                                 1 error
   
   String thestring = "mr doe said, \u0022I love Linux\u0022";
   
    neither way works......

Delimit with a \:

String thestring = "mr doe said, \"I love Linux\"";

Dennis Kelly
Network Administrator
College of Engineering
Michigan State University