0

パスワード変数の値が通過するすべての変数の名前を提供するソリューションを探しています。つまり、{pass, temp, temp1, var1}

class Student{
    public static void main(String args[]){
        String password="GOPAL12345";
        Student student=new Student();
        String var1=student.passPassword(password);
        System.out.println("Password is--> "+var1);
    }
    public String passPassword(String pass){
        String temp=pass;
        String temp1=temp;
        return temp1;
    }
}

これを実行時に実行したい。

4

1 に答える 1