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
Wittaler [7]
3 years ago
7

Can someone help me with my homework?

Computers and Technology
1 answer:
mihalych1998 [28]3 years ago
3 0

Answer:

class Main {

 public static void main(String[] args) {

   if (args.length > 0) {

     long count = args[0].chars().filter(ch -> ch == '7').count();

     System.out.println("Number of sevens " + count);

   }

 }

}

Explanation:

That would do the trick. Drop a comment if you need more explanation. It requires Java 8 because of the lambda expression. What happens is that the input is treated as a string rather than a number, because we're looking for 7's. Convert it to an array of chars, filter out only the chars that are a '7' and count them.

You might be interested in
What does the following code print? time_of_day = ["morning", "afternoon", "evening"] for word in time_of_day: print "Good " + w
jek_recluse [69]

Answer:

syntaxerror

Explanation:

the print is missing a parenthesis - it will give the error:

SyntaxError: Missing parentheses in call to 'print'.

if you did put parenthesis it would say

Good morning

Good afternoon

Good evening

8 0
2 years ago
Is Flip book drawings, frame by frame (need great drawing skills).
lyudmila [28]
I would say traditional animation
7 0
3 years ago
In a random digit telephone survey, homeless people or people with only cell phones do not have telephones that can be called wi
AURORKA [14]

Answer:

a. Undercoverage bias

Explanation:

Based on the information provided within the question it can be said that the bias being mentioned is Undercoverage bias. This refers to when a population of a sample are not being represented correctly, which in this scenario is because these people cannot be contacted. Therefore the correct bias that results from this is Undercoverage bias.

4 0
4 years ago
Question 5 of 5
Archy [21]

<u>Answer:</u>

<em>Sewage treatment Programs </em>

<u>Explanation:</u>

Sewage treatment programs are the right choice <em>because these are the source to create germs and if we understand how to be clean, most of the disease is avoided. </em>

<em>Drug regulation:</em> It is nothing but the continuous treatment of prolonged disease where pills needs to be taken regularly to protect patients from death or to avoid disease become more severe.

<em>Physical fitness campaign:</em> This concentrate on to how to keep bod fit through exercise and it does not deal with hygiene.

<em>Nutrition Education:</em> It’s a kind of protection mechanism where in-take of food is really concentrated to fight against germs.

5 0
4 years ago
Administrator access initiative brings together people from industry, disability organizations, government, and research labs fr
Mars2501 [29]

Answer:

False.

Explanation:

Web Accessibility Initiative (WAI) brings together people from industry, disability organizations, government, and research labs from around the world to develop guidelines and resources to help make the Web accessible to people with disabilities including auditory, cognitive, neurological, physical, speech, and visual disabilities.

It is one of the features of the World Wide Web Consortium (W3C) develiped in 1997 and is aimed at developing standards and support materials to assist in understanding and implementing accessibility for users with disabilities.

6 0
3 years ago
Other questions:
  • the header, in an academic report, typically contains the author’s name and the current page number true or false
    6·1 answer
  • Write a program that displays the values in the list numbers in ascendingorder sorted by the sum of their digits.
    8·1 answer
  • A computer may keep freezing if it's software is up-to-date? <br> True <br> False
    11·1 answer
  • Which encryption standard goes with the WPA2 protocol?<br> AES<br> DES<br> TKIP<br> WPS
    15·1 answer
  • Daphne used to work in the city where she would take public transportation to work. However, she just took a new job in the subu
    10·1 answer
  • Which of the following would allow for the QUICKEST restoration of a server into a warm recovery site in a case in which server
    10·1 answer
  • Why did they removed the watch video button to view answers?​
    15·1 answer
  • What are like arms surrounding all the other code blocks?
    11·2 answers
  • How do i open screenshots on school chromebook?
    15·2 answers
  • True or false: Concurrent validation is more time consuming to measure than predictive validation because it involves a wait per
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!