/**
*
* @author codingNature
*
* String[] split(String regex)
* https://jamesdreaming.tistory.com/84
*
*/
public class StringTest {
public static void main(String[] args) {
System.out.println("aron.");
String code = "0237702659";
String[] mobnum = code.split("T");
String tp_item_val = "99";
String lvlCode = "";
if(mobnum.length == 2) {
lvlCode = mobnum[1];
System.out.println("lvlCode = " + lvlCode);
if("010".equals(lvlCode)){
tp_item_val = "11";
}else if("021".equals(lvlCode)) {
tp_item_val = "12";
}else if("022".equals(lvlCode)) {
tp_item_val = "13";
}else if("023".equals(lvlCode)) {
tp_item_val = "14";
}else if("030".equals(lvlCode)) {
tp_item_val = "15";
}else {
tp_item_val = "99";
}
}
System.out.println("tp_item_val = " + tp_item_val);
}
}