any one can teach me how to use scanner method

in the scanner method has a use useDelimiter(). how to use thatPlease helpthanks
[101 byte] By [nightsky_tinga] at [2007-10-3 3:29:28]
# 1

public static void main(String[] args) throws Exception {

Scanner s = new Scanner("nightsky_ting_didn't_consult_the_javadocs");

s.useDelimiter("_");

while (s.hasNext())

System.out.println(s.next());

}

IanSchneidera at 2007-7-14 21:23:14 > top of Java-index,Java Essentials,Java Programming...
# 2
if i have a list of thing likename = "john"car id = "333"then i only want to store john and 333 in arrayhow ?
nightsky_tinga at 2007-7-14 21:23:14 > top of Java-index,Java Essentials,Java Programming...
# 3

String[] array = {"john" , "333"};

bearing in mind the string "333" has no numeric quality.

If you need "333" to have numeric quality, you can't use an array.

Check the Collections API.

ValentineSmitha at 2007-7-14 21:23:14 > top of Java-index,Java Essentials,Java Programming...