i need to convert String to array of Strings. eg:
String words = "one, two, three, four, five";
into array like
String words1[];
String words1[0]="one";
words1[1]="two";
words1[2]="three";
words1[3]="four";
words1[4]="five";
please guide me
String[] words1 = new String[5]
that's all. don't use conflicting name likeWords1
, andwords1
. Also variables start with small letter. – Nishant Sep 7 '12 at 5:22