问个programming style 的问题 (转载)# Java - 爪哇娇娃
s*p
1 楼
【 以下文字转载自 Programming 讨论区 】
发信人: startup (startup), 信区: Programming
标 题: 问个programming style 的问题
发信站: BBS 未名空间站 (Thu Aug 24 14:32:45 2006)
I have one line code:
return mapping.findForward( s.login( u.getUsername(), u.getPassword()));
Should I write 4 lines like
String username = u.getUsername();
String passwrod = u.getPassword();
String retval = s.login( username, password );
return mapping.findForward( retval );
多谢指教!
发信人: startup (startup), 信区: Programming
标 题: 问个programming style 的问题
发信站: BBS 未名空间站 (Thu Aug 24 14:32:45 2006)
I have one line code:
return mapping.findForward( s.login( u.getUsername(), u.getPassword()));
Should I write 4 lines like
String username = u.getUsername();
String passwrod = u.getPassword();
String retval = s.login( username, password );
return mapping.findForward( retval );
多谢指教!