+ 1

beginner

how to use delimeters??

30th Sep 2024, 4:04 PM
Lord Robertson Kundu
Lord Robertson Kundu - avatar
5 Respostas
+ 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
30th Sep 2024, 5:21 PM
BroFar
BroFar - avatar
+ 4
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
+ 1
in string
2nd Oct 2024, 8:17 AM
Iain mtema
Iain mtema - avatar
0
i donot know
30th Sep 2024, 4:04 PM
Lord Robertson Kundu
Lord Robertson Kundu - avatar