Saga this is the next big thing on message.
And we've got two different types of methods.
We were stopped first with all our methods and methods without an return value and that works like this.
We delete everything art of all main method.
And we want to declare a new method which has some code in it for example make it why it what always
means is it doesn't have a return value.
So the method does something but it don't return something.
If you have a method with a return you can use this return and to make something with it.
For example you have to return some number and you want to calculate with it.
And we will look at it at these examples in the next video for not just yeah just bottle up what just
means no return value.
And we want to just say hi that's the name of all function then we use our brackets and then or Shaab
directs.
And yeah this is our method.
All this is the name of all method and it's looks just like our main method.
And here we've got our message's body and we can put our code in here like we did in Maine.
So we just print hi.
And now if you want to execute it if we want to run this code and this method we have to call it and
we call a function or a method by saying its name.
So say hi.
And with our brackets but not with our method body so just say hi or it's not worth or.
Just the name and the brackets to execute the method.
So if we run it we see high gets printed on it and we can run this method of nested 1 so we can copy
it and place it on the knees and run again and see we've got three times the same output.
And this is this this all Messud without a return value does it just prints something or it would just
use wire do something and does not have a return value.
And aborts methods with a return we're talk and the next video.