Fortune Telling Collection - Comprehensive fortune-telling - In java, I want to get the path and file name of the last folder in a path. How come?
In java, I want to get the path and file name of the last folder in a path. How come?
There are several ways.
You can divide the string by' \' to get the last one.
You can also find the position of the last' \' and remove the following characters.
Others didn't expect to see some functions of String class for the time being.
- Related articles
- Don't go to the bar for fortune telling _ Don't go to the bar for fortune telling.
- Birthday premarital examination free test really free eight-character premarital examination.
- What famous people's names are better in ancient times?
- Fortune teller's name is _ Fortune teller's name is.
- Twenty-eight stars are paired, and the relationship between stars is the deepest.
- How did Taian get engaged?
- Extraordinary fortune-telling novels _ Extraordinary fortune-telling novels are free to read
- The house feng shui is related to the white tiger evil spirit. Is this a tiger demon? How to solve it?
- Is Liang Zhu a contemporary? Why do some history books say that he is not from the same era?
- Do some people think that "Yu Gong Yi Shan" is actually an ironic story?