samedi 9 juillet 2016

Java: Pattern.compile()

Consider following piece of code

for(int i=0;i<10;i++)  
  Pattern p=Pattern.compile(someExpression);     

Will this java code cause same pattern to compile 10 times or will it compile only once when i=0?

Aucun commentaire:

Enregistrer un commentaire