Skip to content

Instantly share code, notes, and snippets.

@noili
Created April 25, 2017 13:07
Show Gist options
  • Save noili/c8cb014a15dbd21aacb34f052c5e05cd to your computer and use it in GitHub Desktop.
Save noili/c8cb014a15dbd21aacb34f052c5e05cd to your computer and use it in GitHub Desktop.
String sUsuario = (((UserSession) session.getAttribute("UserSession")).getName().length() >= 10) ? ((UserSession) session.getAttribute("UserSession")).getName()
.substring(0,
10)
: ((UserSession) session.getAttribute("UserSession")).getName();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment