Professional Documents
Culture Documents
When one method calls another method, it can pass it some information to
work with.
When the second method is finished, it can pass information back to the first
method.
Our Main method doesn't need any information, so its parentheses are empty.
The word void here means that the method doesn't pass or
3:01
0:19
0:21
now we need some way to tell the console to allow the user to enter their
response.
0:25
0:28
0:31
0:37
When this method is called, the console will start recording what
0:40
the user types in until they hit the Return key on the keyboard.
0:44
The Return key marks the end of a line.
0:46
This method doesn't take any parameters, because it doesn't need anything.
0:50
What this method does do is return what the user typed back to our program.
Initializing a Variable :point_left: Assigning for the first time, may also include
declaring.
String Literal :point_left: A string value that's not a variable :point_right: "You
win!"