Java Practice Problems
Browse by category →
sumDigits
One Loop
Given a non-negative int n, return the sum of its digits. sumDigits(126) returns 9 (1+2+6…
countWords
Files & I/O
Given an open BufferedReader over a text file, return the total number of whitespace-sepa…