O loop será o exemplo de Java
int[] array = new int[1000];
int length = array.length;
for (int i = 0; i < length; i++){
}
Comfortable Cormorant
int[] array = new int[1000];
int length = array.length;
for (int i = 0; i < length; i++){
}
import java.util.Stack<E>;
Stack<Integer> myStack = new Stack<Integer>();
myStack.push(1);
myStack.pop();
myStack.peek();
myStack.empty(); // True if stack is empty