FileDocCategorySizeDatePackage
Split.javaAPI DocExample349Mon Nov 18 12:33:22 GMT 2002None

Split

public class Split extends Object
Split a String into a Java Array of Strings divided by an RE

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		String[] x = 
			Pattern.compile("ian").split(
				"the darwinian devonian explodian chicken");
		for (int i=0; i<x.length; i++) {
			System.out.println(i + " \"" + x[i] + "\"");
		}