forked from ambujraj/hacktoberfest2018
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ambujraj#1189 from Miautawn/MiautawnBranch
adding my super secret program
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1772,3 +1772,9 @@ Place : Abuja , Nigeria <br/> | |
About : Coding | Android Developer | ||
Programming Languages : Java | ||
Email : [email protected] | ||
|
||
Name: [Martynas Jasin](https://github.com/Miautawn) | ||
Place: Lithuania | ||
About: Student | ||
Programming Language: C++, Java, C#, JavaScript; | ||
Email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
} | ||
} |