Integer to string in JAVA programming


public class InttoString {

    public static void main(String[] args) {
        int num=3211;
        String str=Integer.toString(num);
        System.out.println(str);
        System.out.println(str+12345);
    }

}

No comments:

Post a Comment