Skip to content

Assignment-4#1

Open
abdiwaliolad wants to merge 1 commit into
Assigment-4-Monday-22from
abdiwaliolad-patch-4
Open

Assignment-4#1
abdiwaliolad wants to merge 1 commit into
Assigment-4-Monday-22from
abdiwaliolad-patch-4

Conversation

@abdiwaliolad
Copy link
Copy Markdown
Owner

/*

  • Projact name: Season with two parameter method
  • Date: 10.22.2018
  • Author: Abdiwali M Olad
    */

public class mon24Assignment {

public static void main(String[] args) {

	int result; // defin the variable name as int result

	result = season(10, 5); // result now is called function method pass by
							// two parameters

	System.out.print(result); // called system out to print out the result
								// in to the console.

}

public static int season(int x, int y) { // creating method and defin to
											// parameters integers

	return x + y; // return x and y

}// end of the method

}//end class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant