Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
public static String getsmsidfromID(String id) {
String val = "";
if (id.contains("motor")) {
int num = Integer.parseInt(id.substring(5, 6));
val = "M" + num;
}
return val;
}
}