String splitMe= "21 42 8 7 51" ;
String[] values = splitMe.split(" ");
More Related Contents:
- How to replace a char with a string
- Android String that change every day
- Converting ‘ArrayList to ‘String[]’ in Java
- How to add new elements to an array?
- A quick and easy way to join array elements with a separator (the opposite of split) in Java [duplicate]
- How to convert Java String into byte[]?
- Check string for palindrome
- How to convert a char array back to a string?
- How can I get the size of an array, a Collection, or a String in Java?
- How do I convert a byte array to Base64 in Java?
- How to extract numbers from a string and get an array of ints?
- length and length() in Java
- Convert array of strings into a string in Java
- Converting String to “Character” array in Java
- Convert String to int array in java
- Java String array: is there a size of method?
- String array initialization in Java [duplicate]
- Remove Null Value from String array in java
- Splitting String and put it on int array
- Print out elements from an Array with a Comma between the elements
- Is it possible in Java to override ‘toString’ for an Objects array?
- Java ByteBuffer to String
- Java equivalent to Explode and Implode(PHP) [closed]
- what is Ljava.lang.String;@
- In Java, how to append a string more efficiently? [duplicate]
- Random element from string array [closed]
- Remove a specific string from an array of string
- How to convert a Java String to an ASCII byte array?
- Why does byteArray have a length of 22 instead of 20?
- Java: Checking equality of arrays (order doesn’t matter)