Thursday, September 25, 2014

Java Function - Fetch Last 4 Characters From String


Java Function V/S Jasper Expression.


Fetch Last 4 Characters From String
$V{VARIABLE_NAME}.substring(Math.max($V{VARIABLE_NAME}.length() - 4, 0))


tags: 
Java Functions.
Java Expression
String Manipulation