Answers for "multiple type array java"

0

multiple type array java

Object[] obj = new Object[]{"a", 1, "b", 2, "c", 3};
for (int i = 0; i < obj.length; i++)
{
    System.out.print(obj[i].toString() + " ");
}
Posted by: Guest on August-30-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language