andrusandy43 andrusandy43
  • 22-03-2021
  • Computers and Technology
contestada

Write and compile a java code to add 18+6?

Relax

Respuesta :

klekaelly
klekaelly klekaelly
  • 22-03-2021

Answer:

public class testing

{

   public static void main(String[] args)

   {

       int x = 18;

       int y = 6;

       System.out.println(addNumbers(x, y));

   }

   public static int addNumbers(int a, int b)

   {

       return a + b;

   }

}

Answer Link

Otras preguntas

What word means "sarcastic" despairing caustic belligerent congruent
What is the pH of a solution that has a hydronium ion concentration of 8.26 ´ 10–5 M?
How is an equation different from an inequality
What is the solution to this system? 3 y = -x + 1 2X y = -x - 4 o (0, -2) 0 (-2, 2) (2,-2) (-2,-2)
HELP I NEED HELP ASAP HELP I NEED HELP ASAP HELP I NEED HELP ASAP HELP I NEED HELP ASAP
Ok so I barley downloaded this right now and it's a new update, how do u follow someone on here?
Write a brief paragraph in Spanish to respond to the following: Explica en un párrafo breve sobre la composición de las familias hispanas. Luego explica quiénes
Please help me with this homework
which translation below translates the figure according to the rule (x,y) -> (x, y-3)
plz, help with my Spanish I am almost done!!!!! don't use internet trans