0

beginner

how to use delimeters??

30th Sep 2024, 4:04 PM
Lord Robertson Kundu
Lord Robertson Kundu - avatar
4 Answers
+ 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
30th Sep 2024, 5:21 PM
BroFar
BroFar - avatar
+ 3
use them for what? show your code and explain what it is supposed to do?
30th Sep 2024, 4:25 PM
Lisa
Lisa - avatar
+ 1
thanks bro far
30th Sep 2024, 7:17 PM
Lord Robertson Kundu
Lord Robertson Kundu - avatar
0
i donot know
30th Sep 2024, 4:04 PM
Lord Robertson Kundu
Lord Robertson Kundu - avatar