Java Object Array Convert To objectArrayToIntArray(Object[] objectArray)

Here you can find the source of objectArrayToIntArray(Object[] objectArray)

Description

object Array To Int Array

License

Open Source License

Declaration

public static int[] objectArrayToIntArray(Object[] objectArray) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int[] objectArrayToIntArray(Object[] objectArray) {
        int[] returnInt = new int[objectArray.length];
        for (int i = 0; i < objectArray.length; i++) {
            returnInt[i] = (Integer) objectArray[i];
        }//from   w  w  w  .  j a  va2  s  .  co  m
        return returnInt;
    }
}

Related

  1. convertObjectToBean(Object obj, Class clazz)
  2. convertObjectToBoolean(Object value)
  3. convertObjectToInt(Object value)
  4. convertObjectToIntegerIfNecessary(final Object configValue)
  5. convertObjectToSqlSyntaxe(Object value)
  6. objectArrayToObjectArray(Object[] objArray)
  7. objectArrayToRVector(Object[] rValues)
  8. objectToIntegerArray(Object[] objects)
  9. ObjectToSingleColumnArray(Object[][] array1)