ICSE Class 10 Computer Applications Question 15 of 32

Input in Java — Question 15

Back to all questions
15
Question

Question 15

Write a code that creates a Scanner object and sets its delimiter to the dollar sign.

Answer
Scanner scanner = new Scanner(System.in);
scanner.useDelimiter("$");