📜  多类型数组java代码示例

📅  最后修改于: 2022-03-11 14:52:35.254000             🧑  作者: Mango

代码示例1
Object[] obj = new Object[]{"a", 1, "b", 2, "c", 3};
for (int i = 0; i < obj.length; i++)
{
    System.out.print(obj[i].toString() + " ");
}