Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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() + " ");
}
 
PREVIOUS NEXT
Tagged: #multiple #type #array #java
ADD COMMENT
Topic
Name
9+2 =