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

Write a method that takes three numerical String values and sums their values. For example, the call sumStrings("1", "5", "7") w

ould return 13. This is done in Java.
Computers and Technology
1 answer:
masha68 [24]3 years ago
7 0

Answer:

public static int sumStrings(String s1, String s2, String s3) {

       int i1 = Integer.parseInt(s1);

       int i2 = Integer.parseInt(s2);

       int i3 = Integer.parseInt(s3);

       

       int sum = i1 + i2 + i3;

       return sum;

   }

Explanation:

- Create a method called <em>sumStrings</em> that takes three strings

- Convert each string to integer using Integer.parseInt() method

- Sum the strings

- Return the result

You might be interested in
Jenny wants to create a network that can be accessed from any room in her house without physically connecting. Which type of net
CaHeK987 [17]

Answer:

D. Wireless

Explanation:

Jenny should opt for the wireless method out of all choices. This is be cause wireless network enables the user to access and use the network from anywhere in radius to the network without a physical connection.

6 0
2 years ago
The recelver in a communication exchange can always ellminate all barriers to the communication.
gogolik [260]
It’s false because I know it
3 0
3 years ago
Which is NOT a factor that affects teenagers' ability to resist peer pressure and stand up for their own values? A. how high or
Furkat [3]
I think it’s C but I’m not completely sure
7 0
3 years ago
Read 2 more answers
One advantage of using online note-taking tools is that they help students to
raketka [301]

Answer:

the correct answer is A

Explanation:

hope it helps

7 0
3 years ago
Read 2 more answers
Design a function named "max" that accepts two integer values as arguments and returns the value that is the greater of the two.
Artyom0805 [142]

// writing c++ function

int maximum ( int a , int b){

if(a>b)

return a;

else

return b;

}

//when this function will be called it will return the max of the integers sent.

//for example

int max = maximum ( 3,4)

//max variable will have 4 returned by the function

3 0
3 years ago
Read 2 more answers
Other questions:
  • What's a qat on a computer
    12·2 answers
  • In the Remote Access Domain, if private data or confidential data is compromised remotely, you should set automatic blocking for
    5·1 answer
  • Your new home has a vacuum system. what kind of computer is controlling it?
    5·1 answer
  • How to find determinant of ​
    15·1 answer
  • A previously saved labels report can be accessed from the
    9·1 answer
  • What is a feature of webmail
    13·1 answer
  • A model is replica that?
    11·2 answers
  • What output is produced by the following code? Integer first = new Integer(7); Integer second = first; if (first == second) Syst
    15·1 answer
  • Is mayonnaise technically an instrument?
    9·1 answer
  • 2.Some artists look for ways to extend copyright for longer than the laws normally allow. Why do they do this?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!