Changes between Version 3 and Version 4 of ControlSystems/SoftwareTeam/Training/GettingStarted/Methods
- Timestamp:
- Nov 4, 2019, 3:56:17 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/Training/GettingStarted/Methods
v3 v4 20 20 }}} 21 21 22 * The function's name is ' square' (notice that function names are typically verbs because they ''do'' something).22 * The function's name is '''square''' (notice that function names are typically verbs because they ''do'' something). 23 23 * It takes an input parameter that is an integer and is referred to within the function as a. 24 24 * The function returns an integer that it computes by multiplying a by itself. … … 39 39 }}} 40 40 41 Create a new EchoExample project folder and in it create an Echo program as follows:41 Create a new !EchoExample project folder and in it create an Echo program as follows: 42 42 {{{ 43 43 public class Echo { … … 54 54 }}} 55 55 56 * Save the program as Echo.java 56 57 * Run the program and observe the output 57 58 * For now, we're going to ignore the keywords public and static, we'll get to those soon