From 86631b4225be8474c24d9a588df590425e926b25 Mon Sep 17 00:00:00 2001 From: Andrin Fassbind Date: Thu, 11 Nov 2021 10:54:12 +0100 Subject: [PATCH] Text.java Datafield updated ClassDiagram updated --- docs/PM2_ClassDiagram.drawio | 2 +- src/Text.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/PM2_ClassDiagram.drawio b/docs/PM2_ClassDiagram.drawio index e6ee161..a8aea87 100644 --- a/docs/PM2_ClassDiagram.drawio +++ b/docs/PM2_ClassDiagram.drawio @@ -1 +1 @@ -7VvbcqM4EP0aV2UesmUuxs5jbGdmU+Xszo5nazKPCiigipAoIcd2vn5bSFwMxEsmZrOp8GTUagnU56i71eCRs4h3XwRKohseYDqyx8Fu5CxHtm25Mwd+lGSvJdOZpQWhIIFRKgVr8oSNcGykGxLg9EBRck4lSQ6FPmcM+/JAhoTg20O1e04P75qgEDcEax/RpvQHCWSkpTN7Wsp/xySM8jtb3oXuiVGubFaSRijg24rIuRo5C8G51FfxboGpMl5uFz3u8zO9xYMJzGSXARcr7+ruJnlKf/jkj5+3ePXX39vziZ7lEdGNWfB3vJNXAZFcmMeW+9wW6ZbEFDFoze85k2vTY0EbURIyuPbhYbAAwSMWkoAZL02H5AlI/YjQYIX2fKMeOZXIf8hb84gL8gTTImrmhG4hDSNs70BjrUaCeAxSgVPQ+ZrbwaqJbtDuQHGFUmkEPqcUJSm5K5YRIxESNudS8tgoNc1sLK9WiHcVkTH7F8xjLMUeVEzvxDDAbAEnb29LQhUsiSpk8owMGQ6HxcwlzHBhkH4B6tMG6g2sKclwTqXgDwXzlYnuCaULToEezpLxTCkHn+J72QJ9TIKAZpMlyCcs/K6osDy3SskqG7h0Ssk3YwUlElwiiTRIChGK7jD9ylMiCVfzC607TzhhMjPVZD6aLDOJkAvOYBGIZOhhAH+LFQFacD26Qf4dbIMuMLUTuLOesJ01sE0EeUQSZ/giQEb1cpjDHt+AWc7WUoDBjc2U0wzTTw06wOJlQYca/C9nhHYGh+C7TfCViMPYe5r5zQh4hFkLIQ6Bn4OxF+PfJtlyFtC2yvabscJxu7EiZ8/JaWHZrZ5+8PEn8vHexaGTLxKYCuKW14b4uC8vbzktbh7WOr4UAu1XBGxke1TBYlyA7YV6D4xlGzUGH9C+o14TGtop0ZsTcIfA3x+8E7sbvH1FfquZzOv9joLgDEI6sMqxtLubB5s43p+xmhR0BU4o8nFbF2EBGKIuDbFUgaR+A3XkwzSbZnAjp+WZ1zGyWG5vkcVrME0fGVc8JA9DTnGinMKZ1Q6O7rQj8pPekG8eHXUaaVKGwgWs96nE8Z8b1aVwqjqHwSEcdQheZ568MK+Yun2xonnoHPKKk8FrjTs6/N4Si4tnEguYPuLBmdwn+NPIuVReAC4re/0cRHhHhrNED6SYdSOFa/fEirx8UWFFxekPKUAvZQXXcd46+SsWUeKuaK/erYgYDZG++64vdtD7qSDkgX2I9H3A+9YVBPu5imEisi1eO+DrDf8NbZ/p+Ux2Z3fNugAWgotrBjchQVF5fF5lweMYsWBwJqdmW9c6wqy3SNIsR+oM4poNCURPCcRk1jFvtPrzMs06pTonrH3EGOAHsOdXH3THVwnudt3+bmdmvDCXcPuqGtjNKuKQS5wM3ukbFw3sto9M9BsGFOhiQSP4KzfgR9h/uGbJRpruTPWOc4oRq+kKHMPWXCf4aREhgXxw/+ngNXr1GtOO4aO3CrTTwWtgFlyqb/9UUkBRmhJfRXAZ59EdjCL2t9XGT4UHGNo0l3nc1q193toReVu5royCVjlINYoxQYhzWAC9iIecIXpVSp+P8infCB8fgy//IhJSB3y0vmQ2o3qYoyhXYJ0cQVVgiiR5xAeP2wa1ucNXrksEhmJTr1bVqKeYeuVmVEmYxkQzq14eqU2kLdOYKGNesexXkLHDl3QfhYz56+d3R8ZxnYy1imlXMk5q33m61n9Mxg5vYT4KGfPs472T0Zn+omd8azLm5ef3QsZX+L2uVJv9r5n2yzF4WmfayWIwNMu/R2j18k8mztU/ \ No newline at end of file + \ No newline at end of file diff --git a/src/Text.java b/src/Text.java index 303601c..df06b53 100644 --- a/src/Text.java +++ b/src/Text.java @@ -6,7 +6,6 @@ public class Text { private final ArrayList text = new ArrayList<>(); private static final String dummyText = "The standard Lorem Ipsum passage, used since the 1500s \"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\" Section 1.10.32 of \"de Finibus Bonorum et Malorum\", written by Cicero in 45 BC \"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"; - private HashMap> wordbook = new HashMap<>(); /** * Method to check if a specific Paragraph exists @@ -136,7 +135,7 @@ public class Text { * @return ArrayList */ public ArrayList index() { - wordbook = createWordlist(); + HashMap> wordbook = createWordlist(); String input; ArrayList output = new ArrayList<>(); ArrayList values; @@ -165,6 +164,7 @@ public class Text { * @return HashMap> */ private HashMap> createWordlist() { + HashMap> wordbook = new HashMap<>(); int counter; ArrayList numbersList; String firstLetter;