Friday, 21 March 2008

Java Split Example

public class Test {
public static void main(String[] args) {
String temp = "123.456";

String[] temp2 = new String[2];

temp2 = temp.split("[.]");

System.out.println(temp2[0]);
}
}

No comments: