Is it just me or are inner-anonymous classes just hard to read?
I believe this is an inner-anonymous class?
public PasswordAuthentication
getPasswordAuthentication() {
String username, password;
String result = JOptionPane.showInputDialog("Enter 'username,password'");
StringTokenizer st = new StringTokenizer(result, ",");
username = st.nextToken();
password = st.nextToken();
return new PasswordAuthentication(username, password);
}
I'm not sure how to read this code.
Anyone wanna give this a chatty interpretation?
--
Bob Tanner <tanner at real-time.com> | Phone : (952)943-8700
http://www.mn-linux.org, Minnesota, Linux | Fax : (952)943-8500
Key fingerprint = 6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9