Showing posts with label Talend convert integer to string. Show all posts
Showing posts with label Talend convert integer to string. Show all posts

Thursday, 12 September 2013

Talend: Convert integer to string (primitive type and non primitive type)


Talend: Convert integer to string (primitive type and non primitive type)

One of the most common thing which you would mostly end up needing in your talend job is to convert integer to string. In java this is very simple using inbuild methods but we need to be little aware of data type of integer - whether it is int/integer. Based on datatype the method used is different. however there could be other ways possible to do same.

int i;
i=10;
String str1;
str1=Integer.toString(i);
System.out.println(str1);

Integer i1;
i1 = 20;
str1=i1.toString();
System.out.println(str1);