| java.lang.Object org.hanselexample.Example
Example | public class Example (Code) | | Example class that is tested by the ExampleTest class.
This implements two methods and has one inner class.
author: Niklas Mehner |
Method Summary | |
public int | abs(int i) The method returns the absolute value of an int.
Parameters: i - Int. | public int | add(int a, int b) This method returns the sum of two numbers.
Parameters: a - First addend. Parameters: b - Second addend. |
abs | public int abs(int i)(Code) | | The method returns the absolute value of an int.
Parameters: i - Int. Absolute value of i. |
add | public int add(int a, int b)(Code) | | This method returns the sum of two numbers.
Parameters: a - First addend. Parameters: b - Second addend. Sum of a and b. |
|
|