title: Java String get multiple index values
body: <p>Rather than using "split" method, is there any easy way to get all the index values of double quote character ("") on following String. Thanks. </p>
  
  <pre><code>String command = "-u User -P Password mkdir \"temp dir\" rmdir \"host dir\"";
  int[] indexAll = command.indexOf ("\""); // This line of code is not compile, only I expect this kind of expression   
  </code></pre>