diff --git a/main/Sisyphus.java b/main/Sisyphus.java new file mode 100644 index 0000000..305f443 --- /dev/null +++ b/main/Sisyphus.java @@ -0,0 +1,14 @@ +public class Sisyphus { + public static final String HUMAN_NAME = "Sisyphus"; + + public static void main(String[] parameters) { + while (true) { + for (int index = 0; index <= HUMAN_NAME.length(); index++) { + System.out.println(HUMAN_NAME.substring(0, index)); + } + for (int index = HUMAN_NAME.length() - 1; index > 0; index--) { + System.out.println(HUMAN_NAME.substring(0, index)); + } + } + } +}