Advertisement
Guest User

Untitled

a guest
Nov 11th, 2017
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. package ProxyPackage;
  2.  
  3. import java.util.Scanner;
  4.  
  5.  
  6. public class Proxies {
  7.  
  8. int session = 10;
  9. String usCountry = "servercountry-us.zproxy.luminati.io:22225:";
  10. String ukCountry = "servercountry-gb.zproxy.luminati.io:22225:";
  11. String usUserName = "lum-customer-justthekickz-zone-notjones-country-us-session-";
  12. String ukUserName = "lum-customer-justthekickz-zone-notjones-country-gb-session-";
  13. private String password;
  14.  
  15. public Proxies()
  16. {
  17. //this.session = session;
  18. this.password = password;
  19. }
  20. public Proxies(String password)
  21. {
  22. //this.session = session;
  23. this.password = password;
  24. }
  25.  
  26. private String getPassword()
  27. {
  28. return password;
  29. }
  30.  
  31. /**
  32. * @param password the password to set
  33. */
  34. public void setPassword(String password) {
  35. this.password = password;
  36. }
  37.  
  38. public int getNumOfSessions(){
  39. System.out.print("Please input number of sessions: ");
  40. Scanner scan = new Scanner(System.in);
  41. session = scan.nextInt();
  42.  
  43. return session;
  44. }
  45.  
  46. public String incrementSession()
  47. {
  48. int count = 0;
  49. for (int i = 0; i < session; i++)
  50. {
  51. count++;
  52. String result = ukCountry + ukUserName + count + ":" + password;
  53. System.out.println(result);
  54.  
  55. }
  56. return Integer.toString(count);
  57. }
  58.  
  59. /*
  60. public void together()
  61. {
  62. String result = usCountry + userName + incrementSession() + ":" + password;
  63. System.out.println(result);
  64. }*/
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement