+ 1
beginner
how to use delimeters??
5 Réponses
+ 5
Lord Robertson Kundu the most common delimeter is split(",") like in the following example
String text = "kiwi,tomato,lemon,lime,apple,banana,orange";
String[] fruits = text.split(",");
for (String fruit : fruits) {
System.out.println(fruit);
}
This is the most straightforward way to split a string based on a delimiter or in this case splitting a string using the delimeter of a comma between words.
https://sololearn.com/compiler-playground/ctl83oGj9rUp/?ref=app
+ 4
use them for what?
show your code and explain what it is supposed to do?
+ 1
thanks bro far
+ 1
in string
0
i donot know