You can ignore the 'resource leak' warning, or you can silence it by "closing"
the Scanner object with the method close() after your input instance of Scanner.

Wishes Ada xx