summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/Listing1103.java
diff options
context:
space:
mode:
Diffstat (limited to 'Master/Reference Architectures and Patterns/hjp5/examples/Listing1103.java')
-rw-r--r--Master/Reference Architectures and Patterns/hjp5/examples/Listing1103.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/Master/Reference Architectures and Patterns/hjp5/examples/Listing1103.java b/Master/Reference Architectures and Patterns/hjp5/examples/Listing1103.java
new file mode 100644
index 0000000..9bed2a5
--- /dev/null
+++ b/Master/Reference Architectures and Patterns/hjp5/examples/Listing1103.java
@@ -0,0 +1,13 @@
+/* Listing1103.java */
+
+public class Listing1103
+{
+ public static void main(String[] args)
+ {
+ String satz = "Dies ist nur ein Test";
+ String[] result = satz.split("\\s");
+ for (int x=0; x<result.length; x++) {
+ System.out.println(result[x]);
+ }
+ }
+} \ No newline at end of file