19- مه رج له ناو مه ردا ! java nested if statements

Поділитися
Вставка
  • Опубліковано 27 січ 2025

КОМЕНТАРІ • 11

  • @chrobakir8153
    @chrobakir8153 3 роки тому

    dastakant xoshbet nmunat zoor bet

  • @shakarwshyar2980
    @shakarwshyar2980 3 роки тому

    Dast xosh be

  • @yosifbapir4825
    @yosifbapir4825 3 роки тому +1

    به س ئه وه فيديويانه بوچ به کاردیت

  • @hamakawa65
    @hamakawa65 4 роки тому

    dast xosh

  • @kurdishamv
    @kurdishamv 4 роки тому +3

    package example;
    import java.util.Scanner;
    public class Example {
    public static void main(String[] args) {
    Scanner sc= new Scanner(System.in);
    System.out.print("Enter your name: ");
    String name=sc.nextLine();
    System.out.print("Enter your Password: ");
    int pass=sc.nextInt();

    if(!name.equals("hama")){
    System.out.print("Your name isn't Correct");
    }else if(pass != 1999){
    System.out.print("Your Password isn't correct");
    }else{
    System.out.print("You Entered");}
    }

    }

  • @talk_kurdish
    @talk_kurdish 2 роки тому

    package javaapplication7;
    import java.util.Scanner;
    public class JavaApplication7 {





    public static void main(String[] args) {


    Scanner fb=new Scanner(System.in);
    System.out.println("enter your email:");
    String x = fb.nextLine();
    System.out.println("enter your password:");
    String y = fb.nextLine();
    if(x=="faraidunbahaden"){
    System.out.println("wrong email" );
    }
    else if(y=="fara1234"){
    System.out.println("wrong password" );
    }

    else{
    System.out.println("wrong password
    or email" );
    }

  • @amenhrt2197
    @amenhrt2197 3 роки тому

    package sign;
    import java.util.Scanner;
    public class Sign{
    public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String user, key;
    System.out.print("Username: ");
    user = sc.nextLine();
    if (!user.equals("Molly")) { System.out.println("Incorrect Username"); }
    else {System.out.print("Password: "); key= sc.nextLine();
    if(!key.equals("amen")) {System.out.println("Inccorect Password");}
    else {System.out.println("loged in...");
    }
    }
    }

  • @aramidreesmuhammed3856
    @aramidreesmuhammed3856 2 роки тому +4

    package javaapplication6;
    import java.util.Scanner;
    public class JavaApplication6 {
    public static void main(String[] args) {

    Scanner inp = new Scanner(System.in);

    System.out.println("Enter your username");
    String username = inp.next();

    System.out.println("Enter your password");
    String password = inp.next();

    if ("arambatasy".equals(username)){
    System.out.println("your usensme is right");
    }else {
    System.out.println("your username is wrong");
    }
    if ("aram".equals(password)){
    System.out.println("your password is correct! ");
    }else {
    System.out.println("username and password are wrong");
    }

    }


    }

  • @aminsamad6900
    @aminsamad6900 4 роки тому

    dast xosh