import java.util.regex.Pattern;
/**
* Created by IntelliJ IDEA.
* User: Alfred
* Date: 08.09.2010
* Time: 14:23:49
*/
public class HOME {
public static void main(String[] args) {
String s = "hello|fdasfasd|fasdfasdf";
String[] ss = s.split(Pattern.quote("|"));
for (int i = 0; i < ss.length; i++) {
System.out.println("ss[i] = " + ss[i]);
}
}
}
--
С Уважением,
Альфред
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en