Java Stack Append appendToStack(Stack stack, int[] input)

Here you can find the source of appendToStack(Stack stack, int[] input)

Description

append To Stack

License

Open Source License

Declaration

public static final void appendToStack(Stack<Integer> stack, int[] input) 

Method Source Code


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

import java.util.Stack;

public class Main {
    public static final void appendToStack(Stack<Integer> stack, int[] input) {
        for (int inputValue : input) {
            stack.push(inputValue);// w  w  w  . j av a2s . c  om
        }
    }
}