Import java.util.Scanner; /** * * @author Adam */ public class PractiseSplit { public static void main(String[] args) { Scanner Scan = new Scanner (NumberCount.class.getResourceAsStream("pay.txt //Scan.useDelimiter(" ^([A-Za-z]+)\\s([0-9]+)\\s([0-9]+)$ "); String [] Emma = Scan.split("A-Z System.out.println("Thes in the String are "); while (Scan.hasNext()) { String temp = Scan.next(); System.out.println(temp); } } }
scan.next
scan.nextInt
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)