From 44f32b3ae87f0d6b73f4577947e690cee486ef58 Mon Sep 17 00:00:00 2001 From: Denis Thiessen Date: Wed, 13 Dec 2023 17:00:34 +0100 Subject: [PATCH] Added transitive clone. --- .../de/denisthiessen/algorithms/XORAlgorithm.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/de/denisthiessen/algorithms/XORAlgorithm.java b/src/main/java/de/denisthiessen/algorithms/XORAlgorithm.java index f2ac28c..d2a4ef9 100644 --- a/src/main/java/de/denisthiessen/algorithms/XORAlgorithm.java +++ b/src/main/java/de/denisthiessen/algorithms/XORAlgorithm.java @@ -39,4 +39,18 @@ public class XORAlgorithm implements IAlgorithm { private void testFunction() { System.out.println("Hello World"); } + + // Type 1 Example Clone. (1) + public void printHey() { + System.out.println("Hey!"); + System.out.println("Hey!"); + System.out.println("Hey!"); + System.out.println("Hey!"); + System.out.println("Hey!"); + System.out.println("Hey!"); + System.out.println("Hey!"); + System.out.println("Hey!"); + System.out.println("Hey!"); + System.out.println("Hey!"); + } }