02.08.2023

0

Like

16

Views

userName

package Baslangic;
import java.util.Scanner;
public class UsernamePassword {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
String userName,password;
System.out.print("Kullanıcı adınızı giriniz : ");
userName = input.nextLine();
System.out.print("Şifrenizi Giriniz :");
password = input.nextLine();
if(userName.equals("Furkan") &&(password.equals("123456"))){
System.out.println("The entry was successful");
}else{
System.out.println("The entry wasn't successful");
System.out.println("şifrenizi unuttuysanız şifrenizi sıfırlayabilirsiniz");
System.out.println("şifre sıfırlamak istiyor musunuz?\n1-EVET\n2-HAYIR");
int select= input.nextInt();
switch (select){
case(1):
System.out.println("şifrenizde özel karekter bulundurmayınız.\nŞifreniz en son hatırladığınız şifre ile aynı olmamasına dikkat ediniz.");
userName= input.nextLine();
password= input.nextLine();
break;
case(2):
break;
default:
break;
}
}

}
}

Comments

You need to log in to be able to comment!

Furkan Buğdaycı

İzmir de ikamet ediyorum.

Location

İzmir, TR

Education

Elektrik Elektronik Mühendisi - İzmir Demokrasi Üniversitesi

Job Experience

Proje Yönetim Mühendisi - TCDD TEKNİK

© 2021 Patika Dev

facebook
twitter
instagram
youtube
linkedin

Disclaimer: The information /programs / events provided on https://patika.dev and https://risein.com are strictly for upskilling and networking purposes related to the technical infrastructure of blockchain platforms. We do not provide financial or investment advice and do not make any representations regarding the value, profitability, or future price of any blockchain or cryptocurrency. Users are encouraged to conduct their own research and consult with licensed financial professionals before engaging in any investment activities. https://patika.dev and https://risein.com disclaim any responsibility for financial decisions made by users based on information provided here.