GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — java-basics/core-java/strings/SplitMethod.java at master · learning-zone/java-basics Expand file tree/ Copy pathSplitMethod.javaMore file actions 16 lines (12 loc) · 338 Bytes / Copy pathSplitMethod.javaFile metadata and controls16 lines (12 loc) · 338 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 package strings; public class SplitMethod { public static void main(String[] args) { String str = "geekss@for@geekss"; String str2 = "word1, word2 word3@word4?word5.word6"; String[] arrOfStr = str.split("@", 2); String[] arrOfStr2 = str.split("[, ?.@]+"); for (String a: arrOfStr2) { System.out.println(a); } } } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |