From 1b585ee9586891d23eb38ffa08d95e0263faf958 Mon Sep 17 00:00:00 2001 From: Miautawn Date: Fri, 19 Oct 2018 14:58:45 +0300 Subject: [PATCH] adding my super secret program --- CONTRIBUTORS.md | 6 ++++ Very_Secret_Hello_World_Project.java | 48 ++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 Very_Secret_Hello_World_Project.java diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 2ce5ab46..81eb7dd6 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1772,3 +1772,9 @@ Place : Abuja , Nigeria
About : Coding | Android Developer Programming Languages : Java Email : yusufadefolahan@gmail.com + +Name: [Martynas Jasin](https://github.com/Miautawn) +Place: Lithuania +About: Student +Programming Language: C++, Java, C#, JavaScript; +Email: miautawn@gmail.com diff --git a/Very_Secret_Hello_World_Project.java b/Very_Secret_Hello_World_Project.java new file mode 100644 index 00000000..e520009c --- /dev/null +++ b/Very_Secret_Hello_World_Project.java @@ -0,0 +1,48 @@ +package com.Miautawn; + +// a simple hello world program for that Hacktober mood going :) +/* How to use: +1. Type anything you want +2. Profit + +Enjoy, made by Miautawn + */ + +import java.util.Scanner; +import java.util.concurrent.TimeUnit; + +public class Main { + + public static void main(String[] args) { + String[] Password = new String[4]; + Scanner scan = new Scanner(System.in); + + System.out.println("Welcome to Hacktober! Please write your secret pass ID: "); + Password[0] = scan.next(); + Decode("Decoding...", 2); + System.out.println("Confirmed! Please write your encoded password"); + Password[1] = scan.next(); + Decode("Searching for patterns...", 1); + System.out.println("Done! Authentication is successful! Now please write THE ANSWER"); + Password[2] = scan.next(); + Decode(":+90q8qq42=<<>q1", 2); + System.out.println(Password[2] + " It is! Now for the final Question: write your Name!"); + Password[3] = scan.next(); + Decode("You are truly the Hactober participant!", 1); + System.out.println("Hello World and Hello to you " + Password[3]); + } + + public static void Decode(String message, int time) + { + System.out.println(message); + try + { + TimeUnit.SECONDS.sleep(time); + } + catch (InterruptedException ex) + { + System.out.println("System Breach! Exiting..."); + System.exit(0); + } + } +} \ No newline at end of file