@@ -0,0 +1,1225 @@
+import java.util.Scanner;%0A%0A/**%0A *%0A * @author Irsyad Jamal Pratama%0A */%0Apublic class ContohMethod %7B%0A    private String username;%0A    private String password;%0A    Scanner scan = new Scanner(System.in);%0A%0A    public ContohMethod() %7B%0A    %7D%0A%0A    public ContohMethod(String username, String password) %7B%0A        this.username = username;%0A        this.password = password;%0A    %7D%0A%0A    public String getUsername() %7B%0A        return username;%0A    %7D%0A%0A    public void setUsername(String username) %7B%0A        this.username = username;%0A    %7D%0A%0A    public String getPassword() %7B%0A        return password;%0A    %7D%0A%0A    public void setPassword(String password) %7B%0A        this.password = password;%0A    %7D%0A    %0A    public void input()%7B%0A        System.out.print(%22Username: %22);%0A        this.username = scan.nextLine();%0A        this.setUsername(username);%0A        System.out.print(%22Password: %22);%0A        this.password = scan.nextLine();%0A        this.setPassword(password);%0A        %0A        this.login(username, password);%0A    %7D%0A    %0A    public boolean login(String username, String password)%7B%0A        if(username == this.getUsername() && password == this.getPassword())%7B%0A            return true;%0A        %7D else %7B%0A            return false;%0A        %7D%0A    %7D%0A%7D%0A

Create ContohMethod.java