/**
*
*/
package com;
import java.util.Scanner;
/**
* @author Administrator
*
*/
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
try {
Scanner s = new Scanner("1b2c335f456");
String token;
do {
token = s.findInLine("//d//w");
System.out.println("found " + token);
} while (token != null);
} catch (Exception e) {
System.out.println("scan exc");
}
}
}
found 1b
found 2c
found 33
found 5f
found 45
found null