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
Helga [31]
2 years ago
5

Write a program that passes an unspecified number of integers from command line and displays their total. Sample Run 1 command&g

t;java 1 2 3 4 5 The total is 15 Sample Run 2 command>java 1 9 1 1 1 The total is 13 Class Name: Exercise07_21
Computers and Technology
1 answer:
Lana71 [14]2 years ago
5 0

Using the computational language in JAVA it is possible to write a code that at least passes an unspecified number of integers

<h3>Writing code in JAVA</h3>

<em>class Exercise07_21</em>

<em>{</em>

<em>public static void main(String args[])</em>

<em>{</em>

<em>int sum=0;</em>

<em>for(int i=0;i<args.length;i++)</em>

<em>sum=sum+Integer.parseInt(args[i]);//converting string to integer and then adding it with sum variable and storing back in sum</em>

<em>System.out.println("The total is "+sum);//printing the sum</em>

<em>}</em>

<em>}</em>

See more about JAVA code at brainly.com/question/12975450

#SPJ1

You might be interested in
What is an indication that malicious code is running?
tatyana61 [14]

Answer:

If you are running Windows check task manager and see if any background process if running if there is a background process of command prompt or powershell, there is a chance that there is a backdoor running in your system, you can just right click and end the task it should just kick the hacker off the server.

please give brainliest

7 0
3 years ago
What are the two methods of creating a folder​
son4ous [18]

Answer:

1. right click empty space, go to New, and click New Folder

2. press Ctrl + Shift + N

Explanation:

5 0
2 years ago
Local area networks use many of the same network technologies and the Internet, only on a smaller scale. Devices that access LAN
enot [183]

Answer:

Fill in the gaps accordingly in the order below.

Explanation:

-Controller

-Media Access Control

-Ethernet

- WiFi

-Mesh

-Password

-SSID

-Encryption

-Guest

-DHCP

-Key

-Low

5 0
3 years ago
In Full Screen Reading View, which area is reduced?
REY [17]

Go to options .

  • Suppose you are reading a document .
  • You want to read in full screen .
  • Hence the Go-to bar will be reduced .
6 0
3 years ago
A system administrator is selecting an operating system for use by the company’s research and development team. The team require
kobusy [5.1K]

Answer:

C. Linux (open source)

Explanation:

Characteristics operating systems Linux:

  • Its modular structure allows modifying some of its elements to fit the needs of the user.
  • It's free
  • It is powerful, safe and stable.
  • It is multi-user and multi-tasking system.
  • There are countless programs for any type of task you want to develop.
  • memory protection between processes.
8 0
3 years ago
Other questions:
  • When making college visits, you may be able to....
    9·2 answers
  • I need help please <br> just plug in the words with their definitions.......
    10·2 answers
  • To find the largest number in a list of numbers, use the _____.
    8·1 answer
  • Which type of financial institution typically has membership requirements?
    11·1 answer
  • How will you ensure that all of the network's applications and tcp/ip services also support ipv6?
    10·1 answer
  • What is a Network It’s a system that is used to link two or more computers and name the different types of networks.?
    11·1 answer
  • What is up with the bots? They are so annoying.
    9·2 answers
  • Why does each record need a unique ID number?
    5·2 answers
  • The lost boy gave the correct
    10·2 answers
  • Which type of service offers a preconfigured testing environment for application developers to create new software applications?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!