サンプルコード
public static void main(String args[]){
String test=null;
if(some condition)
test = "\"abc\"";
else
test ="def";
// if condition is true , in debug mode when i check the value of test its ""abc"" (double double quote);
// if condition is false , then value of test is "def" (double quotes only one time);
}
文字列に二重引用符が含まれているかどうかを確認するロジックを探しています。以下のものを試してみました
// test.startsWith("\"\"")) // this didn;t work