The object console reads input using the following methods
console.nextInt(): to read integer.
console.nextDouble(): to read floating-point numbers. (double & float)
console.next(): to read a string.
console.nextLine(): to read a string until the end of the line.