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

Publicado em: 24 Outubro 2020
no canal de: 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;
}
}


Nesta página do site você pode assistir ao vídeo on-line Java: converting infix to postfix notation using stack | Implementation using java duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário CODE ZERO 24 Outubro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 4,428 vezes e gostou 64 espectadores. Boa visualização!