Introduction
Here is the source code for Main.java
Source
//package com.java2s;
public class Main {
private static int getEndIndex(String term) {
int index = term.length() - 1;
while (term.charAt(index) == '*') {
--index;
if (index < 0) {
break;
}
}
return index;
}
}