# Calling a Java class method

You can call a Java class method to transform the input fields in the Expression Builder. For exmaple, you can call a Java method to cut the first 4 characters from the input field of long type, and convert the result to a value of Integer/int type.

![](https://help.qlik.com/talend/en-US/components/7.3/Resources/images/190513444_call_java_method.png)

The input data will be transformed to output data after being processed in the tMap component.

Input table:

| customer\_id | account\_num |
| --- | --- |
| 1 | 87462024688 |
| 2 | 87514054179 |

Output table:

| customer\_id | account\_num |
| --- | --- |
| 1 | 8746 |
| 2 | 8751 |