import java.util.Scanner; /*********************** * Author: G. Towell * Created: August 28, 2019 * Modified: August 29, 2019 * Purpose: * String parsing ***********************/ public class Stringer2 { public static void main(String[] args) { String line = "The.quick.brown.fox.jumps.over.the.lazy.dog"; String[] tok = line.split("\\."); for (String s: tok) { System.out.println("|"+s+"|"); } Scanner ss = new Scanner(line).useDelimiter(".\\"); while (ss.hasNext()) { System.out.println(ss.next()); } } protected int hh = 5; }