Computer Science, asked by Anonymous, 10 months ago

can anyone tell me how to split Java string?​

Answers

Answered by Anonymous
35

Answer:

hope it will help you

Explanation:

Java String split() method with regex and length example 2

public class SplitExample3 {

public static void main(String[] args) {

String str = "Javatpointtt";

System.out.println("Returning words:");

String[] arr = str.split("t", 0);

for (String w : arr) {

System.out.println(w);

}

hope it will help you

if u like it then plz follwo me

and mark me as brilliant buddie☺☺

Attachments:
Similar questions