java - trying to obtain a first name in the path after first back slash -
i want display first folder name path. /mnt/sdcard/videos/lk.jpeg, want display mnt string. in java
/mnt/sdcard/videos/lk.jpeg--> **mnt**
string str = "/mnt/sdcard/videos/lk.jpeg"; system.out.println(str.split("/")[1]);
try out. poor question. maybe asker can newbie.
Comments
Post a Comment