Providing audio with images
Answer:
public ArrayList onlyBlue(String[] clothes){
ArrayList<String> blueCloths = new ArrayList<>();
for(int i =0; i<clothes.length; i++){
if(clothes[i].equalsIgnoreCase("blue")){
blueCloths.add(clothes[i]);
}
}
return blueCloths;
}
Explanation:
- Create the method to accept an Array object of type String representing colors with a return type of an ArrayList
- Within the method body, create and initialize an Arraylist
- Use a for loop to iterate the Array of cloths.
- Use an if statement within the for loop to check if item equals blue and add to the Arraylist.
- Finally return the arrayList to the caller
In excel, [Text] is used to place worksheet, column and row titles on a worksheet.
In excel you can inset text to make comment, to input words or number and to make title.
Answer:
#include <iostream>
#include <string>
int main() {
std::string name;
std::cout << "Please enter a name: ";
std::cin >> name;
std::cout << "Hello " << name<<"!";
}
Explanation:
Asks for your name and adds Hello {name}!