Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.russit99;
- import java.util.Scanner;
- /**
- *
- * @author RussIT99 (russkey@gmail.com)
- *
- */
- public class project {
- /**
- * @param args command line arguments
- */
- @SuppressWarnings("resource")
- public static void main(String[] args){
- /*
- System.out.println("hello World!");
- if(args[0].equals("dog")) {
- System.out.println("Woof");
- }
- int number = 9001;
- if(number > 5) {
- number = number+5;
- System.out.println(number);
- }
- */
- System.out.println("Insert password; ");
- while(true) {
- Scanner myScanner = new Scanner(System.in);
- if(myScanner.nextLine().equals("password")) {
- System.out.println("password correct.");
- break;
- } else {
- System.out.println("password incorect, try again");
- }
- }
- System.out.println("Microserfs- a book by Douglas Coupland");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement