The document contains 4 code snippets demonstrating different ways to take input in Java programs: 1) Using command line arguments and the args array to print a greeting with a passed in name 2) Swapping two integers entered from the keyboard using only two variables 3) Reading input from the keyboard using InputStreamReader and BufferedReader classes 4) Taking input using the Scanner class to read an integer, string, and double from console input