Java Tutorial for Beginners - 18 - Void and Return Methods

preview_player
Показать описание
In this tutorial we discuss void and return methods in Java in the broadest sense.
Void has some nuances to it that we will discuss in later episodes.

Рекомендации по теме
Комментарии
Автор

If you guys cant understand it

(return) Getfood = FoodA, which is Hamburger

(void) SystemPrint = System.out.print(FoodA);

omgpotato
Автор

Great Video, I had to watch it twice for all the jumping around between the classes but now I understand void vs return with using constructors. Thanks!

JCbeatProductions
Автор

thank you for being so clear . only one suggestion. i recommend you do multiple examples (atleast 2) when explaining a concept in different ways.

satoshinakamoto
Автор

I really like how you explain things. other tutorials i find just skip over things, great work man!

joecity-rp
Автор

Very helpful video! I'm trying to learn some of the things i didn't understand from my Java class before the final. Thanks for making such clear and easy to understand videos!

tegtolaflame
Автор

Thanks and Good Tutorial, got one quick question regards on the void, if you don't give public in front of void, but it can still access by the HumburgerJoint class, is that means default of void will be public?

lingfeiouyang
Автор

Hello :) I still don't understand when should we use return methods and when should we use void methods ? .. :( what's the purpose of one and another ? I get the syntax difference... I just can't understand the purpose of using one instead of another..

GotterVibez
Автор

I don't get it, why it printed "Hamburger" insted "A"? I saw the part of --- Food("Hamburger") ---

but before of it, the String variable called: FoodA had the value "A" so I assumed the message it will print the console was "A".

jefersonaguilar
Автор

Thank from your video, you gave me the way to understand constructors

FunctionSys
Автор

Did u show us how to do systemPrint in 2 ways in this video?

ammarsadeq
Автор

when do you use return? if you can just print it with im trying to learn java and im getting fucked please help

benitosicat
Автор

Can i use return twice in one method? If I can how?

shoabahamed
Автор

2 month and i can understand what the difference between return and  and printing so why we use  return while we can use system .out, print ?  still not get the meaning of return and this fucking  keyword made me  confused every time  try to practice java exersices

englishranger
Автор

are there any more shortcuts like 'sout'?

akshaythampi
Автор

Thanks for these really informative tutorials, they are extremely helpful.
It's a shame they don't have many views yet.
I found your channel through the comments on Bucky's (ThenewBoston) channel. 

Oom
Автор

click F6 instead of going up there and clicking run file...

KarlooAudi
Автор

How do u get the classes linked without using extends?

ricplay
Автор

Do you have any easier to use methods?

sparklyyy
Автор

Thank you so much for your efforts... But, I don't understand why we use two or three different classes and how it is connected to each other... :( So confusing... it is my 3rd day of learning..

areumc
Автор

Hey man, I like your tutorials. You really know how to explain Java in easy way. I would agree with most people who say that you make best Java tutorials, but I really can't understand return and void. what does return return and void not return when pogram prints out same thing. I watched many tutorials and I just can't get it. Help please

pantoner