Write the definition of a method add, which receives two integer parameters and returns their sum.

Write the definition of a method add, which receives two integer parameters and returns their sum.

LANGUAGE: JAVA

CHALLENGE:

Write the definition of a method dashedLine, with one parameter, an int .

Write the definition of a method add, which receives two integer parameters and returns their sum.

SOLUTION:

public int add (int aint, int bint){
   return aint + bint;
}

Add comment