Computer Applications

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

Input in Java

11 Likes

Answer

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

Answered By

5 Likes


Related Questions