Random Java Reference

foreach

Array myArray;
for (Object o : myArray) {
}

Console Input

String input = (new java.util.Scanner(System.in)).nextLine();