Write a Java method named hasLetterA. It receives a 1D array…

Write a Java method named hasLetterA. It receives a 1D array of String and returns a 1D array of booleans. The entries in the returned array should be true if the corresponding String contains at least one ‘a’, either uppercase or lowercase. Otherwise, the entry in the array should be false• Be careful, the array could have locations where a String isn’t presentExample Input: [“Karam”, “VarshA”, “RoHIt”, “sAm”, “LuCas”, “kRiSh”]Output: [true, true, false, true, true, false]