次のことを達成するために助けが必要です:
配列内に次のようなファイルがいくつかあります。
jack+0.txt
jack+2.txt
jack+4.txt
tim+0.txt
tim+2.txt
tim+4.txt
raph+0.txt
raph+2.txt
raph+4.txt
wells+0.txt
wells+2.txt
wells+4.txt
etc.
次のことを行うプログラムを作成したいと思います。
if the filename is like *0.txt, a++;
if the filename is like *2.txt, b++;
if the filename is like *4.txt, c++;
必要なコアヘルプは、正規表現(Javaの場合)を使用することです。