Search:

Type: Posts; User: jocdrew21

Search: Search took 0.11 seconds.

  1. Thread: array stack

    by jocdrew21
    Replies
    4
    Views
    851

    Re: array stack

    Here is a different approach. I want to make a 3 stacked array.



    import java.util.*;

    public class ArrayStack
    {
    private int SIZE =10;
    private int MAXSIZE= 30;
  2. Thread: array stack

    by jocdrew21
    Replies
    4
    Views
    851

    array stack

    public class ThreeStackArray
    {
    static int row = 10;
    static int col = 2;
    int[][] stack = new int[row][col];

    //place numbers into the first row of array
    public void push(int num)
    {
Results 1 to 2 of 2