how to search for number digits and print the total in a text file for java? -
i have code need find frequent digit number , print out total number of digits decimal numbers in file. code is:
65-43+21= 43 65.0-43.0+21.0= 43.0 65 -43 +21 = 43 65.0 -43.0 +21.0 = 43.0 65 - 43 + 21 = 43 65.00 - 43.0 + 21.000 = +0043.0000 65 - 43 + 21 = 43
the output should say:
digit: 18 0
how go doing this? should use character.isdigit() function, or make array it? can me out this? thanks.
read text file char char. use guava hashmutilset store digit chars. iterate on hashmutilset.entrys , determine char max occurences.
Comments
Post a Comment