In python,how to output all the files name with the same extension in a directory?
I want to output the files name by using ~/*.java command. I can check if it is a java file but I really don't know how to output and read all the files by *.java command.