Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
Java
2021-11-08 14:59:25
how to get multiple integer input in java
String input = scanner.nextLine(); // get the entire line after the prompt String[] numbers = input.split(" "); // split by spaces
Add solution
Java
2021-10-26 17:03:11
java split for multiple characters
String input = "Hi,X How-how are:any you?"; String[] parts = input.split("[\\W]");
Add solution
Javascript
2021-10-17 18:43:10
javascript split string into array by comma and space
input.split(/[ ,]+/); //splits string using RegEx on a space OR a comma
Add solution
Java
2021-10-14 04:42:18
how to saperate string to array
Scanner in=new Scanner(System.in); String input=in.nextLine(); String[] word=input.split(" ");
Add solution
Dart
2021-10-10 01:32:03
reverse srring in dart
import 'dart:io'; void main() { stdout.write("Please give a word: "); String input = stdin.readLineSync().toLowerCase(); String revInput = input.split('').reversed.join(''); }
Add solution
Java
2021-09-25 14:00:03
split string into int array
String[] strArray = input.split(","); int[] intArray = new int[strArray.length]; for(int i = 0; i < strArray.length; i++) { intArray[i] = Integer.parseInt(strArray[i]); }
Add solution
Best helpers
daily
weekly
monthly
for 3 months
John
+5
Laiz
+5
BrianMartha Klassanos
+5
T.A. N
+5
Edgar.W
+5
Indranil Debnath
+5
Stephen Meschke
+5
Deadcode
+5
Juliette
+5
Abraham Chan
+5
Alinamolnia
+5
Orlp
+5
Elvis Bertram
+5
Beadle2
+5
JinJan
+5
show more
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.