C coder05 Lurker Mar 2, 2014 #1 Hi, Is there anyway to change this string to int[] arr, passing all the values from str to int[] arr. String str = "12, 16, 18, 19"; to int[] arr = new int[]{12,16,18,19}; thanks
Hi, Is there anyway to change this string to int[] arr, passing all the values from str to int[] arr. String str = "12, 16, 18, 19"; to int[] arr = new int[]{12,16,18,19}; thanks
Z zonk Newbie Mar 2, 2014 #2 "Change" is an odd way to describe the process! The old way of explaining it would be to tokenise it. Search for a StringTokenizer example...
"Change" is an odd way to describe the process! The old way of explaining it would be to tokenise it. Search for a StringTokenizer example...