Menu
Question Index
...

Write a program to convert given integer array to string.

Input (int[]) Output (String)
{1, 2, 3, 4, 5, 6} '123456'
{0, 1, 2, 3} '0123'
{7, 8, 9} '789'
{7} '7'



class ConvertToStringFromIntegerArray
{
    public static void main(String s[])
    {
        int[] inputArray = {1, 2, 3, 4, 5, 6};
        System.out.println("The Resultant String is : " + convertToString(inputArray));

    }


    public static String convertToString(int[] inputArray) {
    }

}

Doubts

Problems

Topic: Java String Conversion - toString() Method In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App