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);





29 comments:

  1. I’d have to examine with you here. Which isn't something I usually do! I enjoy reading a post that can make people think. Additionally, thanks for allowing me to comment! mgm online casino

    ReplyDelete