Here you can find the source of CreateIntArrayFromIntegerList(List
Parameter | Description |
---|---|
solidsList | Integer list |
public static int[] CreateIntArrayFromIntegerList(List<Integer> solidsList)
//package com.java2s; /*/*from www. j a v a2 s.c o m*/ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" * which accompanies this distribution, and is available * at the URL "http://www.eclipse.org/legal/epl-v10.html". * * Initial Contributors: * Nokia Corporation - initial contribution. * * Contributors: * * Description: * */ import java.util.List; public class Main { /** * Builds int array from Integer List object * * @param solidsList * Integer list * @return int array */ public static int[] CreateIntArrayFromIntegerList(List<Integer> solidsList) { int[] solidPts = new int[solidsList.size()]; for (int j = 0; j < solidsList.size(); j++) { solidPts[j] = solidsList.get(j); } return solidPts; } }