Function example code in java

class Main
{
    public static boolean Login(String username,int password)
    {
        if(password==123)
        {
            return false;
        }
        return true;
    }
    public static void play(Boolean b)
    {
        if(b)
        {
            System.out.println("video played successfully");
        }
    }
    public static void main(String args[])
    {
        String us="sryaravl15";
        int pass=1234;
        Boolean b=Login(us,pass);
        play(b);
    }
}

[Success] Your code was executed successfully

video played successfully