URGENT...PLease help!!!!

I need to do a check in my java code to see if a string begins with the character ".How is it that I can represent just the single quote mark as a string?I do not seem to be able to use the following:"""'"'"\""PLEASE HELP!!!!!!
[285 byte] By [CHEERS] at [2007-9-26 3:25:15]
# 1
String z = "\'";That should create a String object with a single quote mark as the contents of the string.Dave
davewiltz at 2007-6-29 11:45:54 > top of Java-index,Archived Forums,Java Programming...
# 2

Hi !

Try this :

String test = "\"This text starts with a quote, and finishes with a quote\"";

boolean quoteFirstChar = test.charAt(0) == '\"';

boolean quoteLastChar = test.charAt(test.length()-1) == '\"';

System.out.println(quoteFirstChar+" : "+quoteLastChar);

Regards,

stephane

stephmor at 2007-6-29 11:45:54 > top of Java-index,Archived Forums,Java Programming...