2021年5月5日星期三

Match word from the given list using java?

This is what I have as an List of words

[t1, table_1, table_2]  

and I have a string,

public class TestData {     public static void main(String args[]) throws JSQLParserException {  string = " table_2 t2 on t1.col1_id = t2.col2_id "   

Now my requirement is to match the exact words from the list toward string if it is true then return words ,

for this case mY expected output should be

table_2  
https://stackoverflow.com/questions/67410919/match-word-from-the-given-list-using-java May 06, 2021 at 10:05AM

没有评论:

发表评论