You need to escape the dot if you want to split on a literal dot: String extensionRemoved = filename.split("\\.")[0];. Otherwise you are splitting on the ...
確定! 回上一頁