Give the appropriate function of the Scanner class which is used to a) Accept an int data type. b) Accept an float data type.
Answers
Answered by
0
Answer:
1) int x = sc.nextInt();
2) float f = sc.nextFloat();
Explanation:
Similar questions