how can I split string according to space in java?
str = "Hello I'm your String";
String[] splited = str.split("\\s+");
how can I split string according to space in java?
str = "Hello I'm your String";
String[] splited = str.split("\\s+");
split a line on whitespace
fn main() {
let s = "line 1
line 2
line 3";
let chunks:Vec<_> = s.split_whitespace().collect();
println!("Sum of x and y = {:?} ", chunks);
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us