0 évaluation0% ont trouvé ce document utile (0 vote)
39 vues1 page
The document discusses using the Java Scanner class to read input from the keyboard. It shows how to create a Scanner object, use the nextInt() and nextDouble() methods to read integer and double values into variables, and print the variable values. It also briefly mentions allocating space for a vector/array and using a Scanner to read integer values into array elements, as well as allocating a 2D array to read values from input into a matrix.
The document discusses using the Java Scanner class to read input from the keyboard. It shows how to create a Scanner object, use the nextInt() and nextDouble() methods to read integer and double values into variables, and print the variable values. It also briefly mentions allocating space for a vector/array and using a Scanner to read integer values into array elements, as well as allocating a 2D array to read values from input into a matrix.
The document discusses using the Java Scanner class to read input from the keyboard. It shows how to create a Scanner object, use the nextInt() and nextDouble() methods to read integer and double values into variables, and print the variable values. It also briefly mentions allocating space for a vector/array and using a Scanner to read integer values into array elements, as well as allocating a 2D array to read values from input into a matrix.