Question might confuse you but read below for clarifications...
I am making a simple console project to get a extension of a file by inputting name from user. I am using solution described here:
How do I get the file extension of a file in Java?
It solve my 90% problem I have split file name on the basis of "." and "/".
But it will not run for input "a.out" or some otjer examples like this it will give extension as ".out" actually being extension less
So is there any solution for thia case????
please help me
Sorry for my english