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());
}
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.