Write a program to input each primitive data type using scanner class.
Answers
Answered by
5
Answer:
Scanner class input methods
next() - Finds and returns the next string from input stream.
nextLine() - Return line from from input.
nextByte() - Return byte read from input.
nextShort() - Return short read from input.
nextInt() - Return integer read from input.
nextLong() - Return long read from input.
Similar questions