Hello, I'm just starting off in Java so I was looking for some help. I'm supposed to create a program which asks a user for a string of integers. Such as "123sdf1564fd34." I am then supposed to use an Integer Parse method to take the integers out of the string and display them on separate lines. So for my example, it would be 123, 1564, and 34. I am supposed to write a method like public static int[] intParse(String s) that returns an array, but I am not sure how to do this. Any help would be appreciated.
No comments:
Post a Comment