SHARE
TWEET

Untitled

a guest Jun 18th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. List<String> srtList = new ArrayList<>(Arrays.asList("capacity Run Ashok",
  2.                 "ashok Capacity"));
  3.         String word = "Capacity";
  4.         for (String str :srtList) {
  5.             System.out.println(str.toUpperCase());
  6.             if (str.toUpperCase().startsWith(word.toUpperCase())) {
  7.                 System.out.println("Found: " + word + " in "+str);
  8.             }
  9.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top