Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. public static void main(string[] args)
  2. {
  3.   //first argument passed is a Url, if a second and third argument are passed,
  4.   //then they're considered to be the user name and password to use for authentication
  5.   String url = args[0];
  6.   String userName = null;
  7.   String password = null;
  8.   try
  9.   {
  10.     userName = args[1];
  11.     password = args[2];
  12.   }
  13.   catch(ArrayIndexOutOfBoundsException ex) { }
  14.  
  15.   Open(url, userName, password);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement