public class RegTest {
public static void main(String[] args) {
String s = "you,are,my";
String[] test = s.split("[^a-zA-Z]+");
for(String strPrint : test )
{
System.out.println(strPrint);
}
}
}
public static void main(String[] args) {
String s = "you,are,my";
String[] test = s.split("[^a-zA-Z]+");
for(String strPrint : test )
{
System.out.println(strPrint);
}
}
}
No comments:
Post a Comment