1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Deffense [45]
3 years ago
6

Write a code segment that uses an enhanced for loop to print all elements of words that end with "ing". As an example, if words

contains {"ten", "fading", "post", "card", "thunder", "hinge", "trailing", "batting"}, then the following output should be produced by the code segment. fading trailing batting Write the code segment as described above. The code segment must use an enhanced for loop to earn full credit.
Computers and Technology
1 answer:
nadezda [96]3 years ago
6 0

Answer:

 public static void main(String[] args) {

   String ing[] = {"ten","fading","post","card","thunder","hinge","trailing","batting"};

   for (String i: ing){

     if (i.endsWith("ing")){

       System.out.println(i);

    }

   }

 }

Explanation:

The for-loop cycles through the entire list and the if-statement makes it so that the string is only printed if it ends with "ing"

You might be interested in
Your friend want to make a copy of your new game you bought the previous day .
Lisa [10]

Answer:

It is copyright infringement

Explanation:

Required

Why you should prevent your friend from copying a software you bought

When you purchase a software, you claim ownership of the software (for using the software on your devices); however, your ownership is not a full ownership because the software is an intellectual property of the developer.

This means that, you cannot copy or redistribute the software without the consent of the developer. Doing so, without getting consent, is a copyright infringement.

3 0
3 years ago
Discuss your theory on why the light bulbs in the combination circuit have different brightness.
umka21 [38]
I believe lightbulbs have different brightness because of there quality parts that make it. The cheaper they are usually the worse quality. That is my theory.
5 0
3 years ago
How can investors receive compounding returns
ANTONII [103]
If you’ve ever had a savings account, you likely know that a few cents in interest every month barely adds up. The goal is “compounding returns,” which simply means that the interest you earn each month earns additional interest, which then earns even more interest. But although a savings account will help with that, you may be lucky enough to be able to afford a cup of coffee every 10 years or so at that rate. Instead, it’s important to find a way to invest your money in a high-interest account that will earn compounding returns.

I hope this helps you out ;)
3 0
4 years ago
I am currently building my own PC is there any part I should put first? Or is it just whatever?
Dominik [7]

Basically, I had the same question when I got my PC! You can do any part you choose as long as you put it together in the right place.

Hope this helped you!

4 0
3 years ago
Read 2 more answers
What is computer ?how does it work​
Lorico [155]

Answer:

A computer is an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program. It receives data through an input unit based on the instructions it is given and after it processes the data, it sends it back through an output device.

Explanation:

5 0
4 years ago
Read 2 more answers
Other questions:
  • I damaged a k12 laptop. do I have to pay for the damage? and if so how much?
    5·1 answer
  • There are three required elements needed to connect to the internet: internet service provider, hardware, and __________.
    13·1 answer
  • Does Android have text-to-voice?
    11·1 answer
  • Do most good businesses have to deal with conflict
    7·1 answer
  • Sami is creating a web page for her dog walking business. Which item will set the theme for her page? Background color Heading c
    11·2 answers
  • Good business ethics is a good marketing strategy. Discuss
    13·1 answer
  • Use NAND operator to write; P or Q, and P -Q make an everyday implication sentence using only NAND
    14·1 answer
  • Heeeeeeeelp :)<br> thx<br> jfdyiusjmkdsuiho;dmcvrvho;j
    5·2 answers
  • Philp has taken selfie wearing T-shirt that read "California 92." However, the text is mirrored in the selfie. He wants to uploa
    9·1 answer
  • Choose the term that best matches each definition.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!