Here you can find the source of appendToStack(Stack
public static final void appendToStack(Stack<Integer> stack, int[] input)
//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 } } }