I have that following code with class called stack, and a push method
can you help me please how to make a method that show the maximum ( the largest number ) number in stack? please help me with a very simple code I'm beginner I don't know in java just 5%

```
class stack1 {
    int maxsize,top;
    String arr[];
    int maxsize1;
    stack1 (int maxsize){
       this.maxsize=maxsize;
       arr=new String[maxsize];
       top=0;
    }
    void push (String data) {
       if (top<maxsize) {
          arr[top]=data;
          top++;
       } else {
          System.out.print("stack is overflow");
       }
    }
    public static void main(String arg[]) {
       stack1 s=new stack1(4);
       s.push("1");
       s.push("2");
       s.push("3");
       s.push("4");
    }
}

```