Flowchart (ISO 5807)
Source code
Java
class Stack {
int[] data = new int[100];
int top = 0;
void push(int x) {
data[top] = x;
top++;
}
int pop() {
top--;
return data[top];
}
}The editor opens with this code — change it and the chart redraws.
- Language
- Java
- Constructs
- push / pop
- Topic
- Classes & methods
- Formats
- Word, Visio, draw.io, PDF, SVG