Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ProxyPackage;
- import java.util.Scanner;
- public class Proxies {
- int session = 10;
- String usCountry = "servercountry-us.zproxy.luminati.io:22225:";
- String ukCountry = "servercountry-gb.zproxy.luminati.io:22225:";
- String usUserName = "lum-customer-justthekickz-zone-notjones-country-us-session-";
- String ukUserName = "lum-customer-justthekickz-zone-notjones-country-gb-session-";
- private String password;
- public Proxies()
- {
- //this.session = session;
- this.password = password;
- }
- public Proxies(String password)
- {
- //this.session = session;
- this.password = password;
- }
- private String getPassword()
- {
- return password;
- }
- /**
- * @param password the password to set
- */
- public void setPassword(String password) {
- this.password = password;
- }
- public int getNumOfSessions(){
- System.out.print("Please input number of sessions: ");
- Scanner scan = new Scanner(System.in);
- session = scan.nextInt();
- return session;
- }
- public String incrementSession()
- {
- int count = 0;
- for (int i = 0; i < session; i++)
- {
- count++;
- String result = ukCountry + ukUserName + count + ":" + password;
- System.out.println(result);
- }
- return Integer.toString(count);
- }
- /*
- public void together()
- {
- String result = usCountry + userName + incrementSession() + ":" + password;
- System.out.println(result);
- }*/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement