java Android代写 Write a program to implement autocomplete for a given set of N terms, where a term is a query string and an associated nonnegative weight.