A simple password program that I wrote in Java programming language.
I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details. If you want to advertise on my website kindly contact me also in my email address also. Thank you.My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.My mobile number here in the Philippines is 09173084360.
Program Listing
package test;
/*
- Prof. Jake Rodriguez Pomperada, MAED-IT, MIT
- www.jakerpomperada.com and www.jakerpomperada.blogspot.com
- jakerpomperada@gmail.com
- Bacolod City, Negros Occidental Philippines
*/
import java.util.Scanner;
public class Password {
public static void main(String[] args) { // TODO Auto-generated method stub Scanner input = new Scanner(System.in); System.out.println(); System.out.println("\tSimple Password in Java"); System.out.println(); System. out. print("\tEnter your password : "); String password1 = input.nextLine(); System.out.println("\n"); if(password1.equals("SECRET")) { System. out. println("\tPassword is Granted"); }//end if else { System. out. println("\tPassword is denied"); } //end else System.out.println("\n"); System.out.print("\tEnd of Program \n"); System.out.println(); input.close(); }
}