Skip to content

Commit

Permalink
Create [string]splitter.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepjindal authored Oct 24, 2021
1 parent fe499a0 commit ea9ad43
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions common_syntax/java/[string]splitter.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
String str = "geekss@for@geekss";
String[] arrOfStr = str.split("@", 5);

for (String a : arrOfStr)
System.out.println(a);
}

0 comments on commit ea9ad43

Please sign in to comment.