标签:split setpath roi sse file class java vat str
20_MVVM
package com.bignerdranch.android.beatbox;
public class Sound {
private String mAssetPath;
private String mName;
public Sound(String assetPath) {
mAssetPath = assetPath;
String[] components = assetPath.split("/");
String filename = components[components.length - 1];
mName = filename.replace(".wav", "");
}
public String getAssetPath() {
return mAssetPath;
}
public String getName() {
return mName;
}
}
标签:split setpath roi sse file class java vat str
原文地址:https://www.cnblogs.com/zhouheng0918/p/9215166.html