Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Login {
- private String username;
- private String password;
- private String apiCall = "/rest/auth/1/session";
- private Scanner input = new Scanner(System.in);
- void setUsername()
- {
- System.out.println("Login:");
- this.username = input.nextLine();
- }
- void setPassword ()
- {
- System.out.println("Haslo:");
- this.password = input.nextLine();
- }
- String getUsername()
- {
- return this.username;
- }
- String getPassword()
- {
- return this.password;
- }
- String getApiCall()
- {
- return apiCall;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement