Java: converting infix to postfix notation using stack | Implementation using java

Published: 24 October 2020
on channel: CODE ZERO
4,428
64

in this video we;ll be converting infix notation to postfix notation using stack.
i'll be using netbeans ide..
#java
#stack
#infixtopostfix
#code_zero
code for stack is provided below(copy & paste it):

class Stack
{

int top=-1;
int size=0;
char[] arr;

public Stack(int size)
{
arr= new char[size];
this.size=size;
}
public void push(char num)
{
arr[++top]=num;
}

public char pop()
{
return arr[top--];
}

public char peek()
{
return arr[top];
}

public char peekn(int i)
{
return arr[i];
}
public int size()
{
return top+1;
}
public boolean isEmpty()
{
return top==-1;
}
}


On this page of the site you can watch the video online Java: converting infix to postfix notation using stack | Implementation using java with a duration of hours minute second in good quality, which was uploaded by the user CODE ZERO 24 October 2020, share the link with friends and acquaintances, this video has already been watched 4,428 times on youtube and it was liked by 64 viewers. Enjoy your viewing!