I want this to be possible in java
I tried using magic but it didn't work
switch(string) { case regex: //... break; } //should execute case when string.matches(regex) is true
Aucun commentaire:
Enregistrer un commentaire