0
beginner
how to use delimeters??
4 Réponses
+ 2
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
+ 3
use them for what?
show your code and explain what it is supposed to do?
+ 1
thanks bro far
0
i donot know