Caricamento...public class StringSplit {
public static void main(String args[]) throws Exception{
new StringSplit().doit();
}
public void doit() {
String s3 = "Frase-da-separare";
String [] temp = null;
temp = s3.split("-");
dump(temp);
}
public void dump(String []s) {
System.out.println("------------");
for (int i = 0 ; i < s.length ; i++) {
System.out.println(s[i]);
}
System.out.println("------------");
}
}
Lascia un commento
Copyright © 2005 - 2010 :: ianaz - created by Silvio Rainoldi