Android Application Development Tutorial - 33 - Creating a Method

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I am watching this on 2014.. for the most part

raciocinio
Автор

"void" keyword does not mean its method. void there specifies the return type of the method. if return type is "void" function does not return anything FOR THE MOST PART 

sercan
Автор

If you didn't understand that because of my bad english(I'm italian), my previous comment was an ironic one guys!
It's obvious that Travis knows what the return types are and I think everyone who watches these Android tutorials knows about that.

FrancescoPalmiotto
Автор

Programming is a craft and part of the craft is to make the code read like a story that explains itself. This includes naming methods so their names tell us what they do.

BrickMan
Автор

From my experience of using methods, I have concluded that void is only a space maker/organizer that can also be used more than once. use void methods only when you'll use MULTIPLE lines of code more than once or you think your class is starting to look cluttered. :)

deadmoney
Автор

He actually says it - 3:07 "void, again void basically means it's just a method, and it's gonna return... well, let's be... just think that as just being a method FTMP" - so he says what it is, for someone, who isn't at all familiar with programming. That's actually his mission - hell yeah, he could talk exactly about everything, like in this huge 700 pages books, but he tries to save our time and explain in simple words the same problem, what is simillar to reducing those books to 100 pages :)

TakiTamAdam
Автор

Dude! It is just so much obvious that he knows what it is.
He is saying it in such a way just because he does not wants to get into the details, you seem to understand java well, but for those who do not it would become very confusing if he gets in so much of the details. Just my 1000$

prakharsrivastav
Автор

I am watching this on 2013, for the most part !!!!

kastriotdreshaj
Автор

Everyone who has actually bothered to watch some programming tutorials knows this...try watch Bucky's C++ Tutorials, he explains it within the first 15 tutorials. Travis just didn't tell us because he's teaching those who don't have any programming background as well as those who do, so he doesn't want to confuse you.

digigalaxy
Автор

Void means it's not going to return anything. You could replace it with String, int or any other type, but then you'd have to return something, which we don't want in this case. Just thought i'd clarify Void for ya'll.

NikkexD
Автор

thats why i agree with him.. for the most part

housse
Автор

Thank you for these great tutorials :)

NehadHirmiz
Автор

Really helpful tutorials..
Thanks man for your time and effort!! 

KunalKumar-uzhb
Автор

The R.raw is usually because your "raw" folder is not in the /res/ folder, at least that's how it was for me.

SockPuppetDinosaur
Автор

@karollisiewicz It is his method, it is his demo, he can call it whatever he wants. I would have called it smashing eggnog!

ravenswood
Автор

@mastermax7777 same, i remove the @override too because i didnt know what it does but I keep them in now since I started watching this series because I can recognise then as methods easier

itskiefer
Автор

getting errors:
The value of the local variable btnCmd is not used
The value of the local variable passTog is not used
The value of the local variable input is not used
The value of the local variable display is not used

DemoGamesHD
Автор

@mangopearandapples don't remove @override, but the "//" lines is okay, since "//" is comments, just as "/** text here */" is a comment in the code.

UCpRLf-JlOxOyZvGEEMlGQ
Автор

I think he knows that, but if you don't have a programming backround it can be really hard to explain what a method is returning

davysplash
Автор

So why can't it be final? I know he said it, but it didn't really make sense to me.

questionman
welcome to shbcf.ru