Learn Java Tutorial for Beginners, Part 15: Getters and Return Values

preview_player
Показать описание
-------------------------------------------------------------------------------------------------------------------------------------------
This tutorial shows you how to create "get" methods for your Java classes, and I'll also show you how to return values from methods in general.
--------------------------------------------------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

I just wanted to say, that I've tried learning computer programming (both C++ and Java) from a number of other places (Khan Academy - useless, SoloLearn - usless, CodeAcademy - useless, text books - better than the online options, but still lacking), and your lessons are the best I've found *by far.* For the first time, I'm actually understanding the why's and how's behind the language, and seeing the concepts applied in real-time *as they're explained* makes such a huge difference! I cannot tell you how thankful I am to have stumbled across your tutorials, and I can't wait to jump into other programming languages, as well. Thank you again!

jamaraquai
Автор

I hope you are making loads of money with your tutorials. They are terrific.

kazimierzgarshin
Автор

It took me a while to get this. I mean, watching and following along in a tutorial is one thing but trying to do it from scratch is another. That's when the real learning happens. I highly recommend people to make another class and try to replicate John's code but with a different class, objects, variables etc. and try not to look at his code, try to just do it yourself. I made a class called Animal instead and though it took some time to figure out, I completely understand now.

wolfferoni
Автор

OMG, can't believe u explained it so clearly... way better than my prof

gevenaowl
Автор

Eureka! I finally understand "Getters!" (Nevermind the dozen or so books I have on

BobSmith-zpkk
Автор

Your pace is spot on. Much better than a book.

jeffwads
Автор

Hello, and as many already wrote down here i just wanted to say a HUGE thank you for those tutorials, they are very very useful and easy to understand, THANKS A LOT!!!
 

Rufus
Автор

I've been lazy about suggesting exercises :) On the front page of my website, Cave of Programming, there's a Java test that actually contains practical exercises for absolute beginners. But really the best thing is just to think up some programs and try to write them. Like, try to create a text-based game.

caveofprogramming
Автор

I can't believe how much of an animal is our brain ( we ). Like, yea sure, when we understand this programming it's totally easy for us and seems logical, but the point is, if it's so easy, than why don't we get it instantly?

Our brains are logical machines right?

No, our brain haves to create new connections to create the illusion of logic.. that's so sick. It's like our brain is a powerful VR module which allows us to perviece this world as we do. Even counting, 2+2, has be to learned. It's not obvious for someone who gets to know math for the first time. SICK!!!

kosmox
Автор

Wow, had to watch this one a few times. LOL I finally got it. But sure takes a bit to get your head around. BTW - thanks again John for posting these vids. I'm also reading a beginner java book and the reading is fairly straightforward after watching your vids.

ghvy
Автор

Don't worry about it too much. Sometime Eclipse seems to complain about there being no main class even when there is one. Start a new project with ONLY a main class/method and click the green run button to check that it runs. Then add your code to it. I have the same problem all the time ....

caveofprogramming
Автор

Ah OK. Try ctrl+shift+f too ... it formats the code and makes it much easier to see which closing bracket should close which opening bracket .... They all need to be paired off.

caveofprogramming
Автор

You're teaching is so straight forward and easy to understand. Love it!

dehydrted
Автор

YOU ARE AMAZING!!! Thank you for your videos!!!

sharone
Автор

John, Thank you very much for your videos.

yuvaraj
Автор

This is an awesome video series! I am really getting ahead in my computer science class. Thank you.

stephencollins
Автор

thank you!your tutorial are awesome! 

from:malaysia

manloo
Автор

Impressive understandble Tutorials  You are Awesome Bro !

TrancIsland
Автор

Phenomenal videos! I'm making a lot of progress. Btw, whats the name of the classical piece at the beginning of each video? Really regal stuff!

bhargavraut
Автор

Hello John, I had a question. Why doing it the hard way with the int and return method when you can do what you did in the first place with just using void and
I mean what you did first is easier, isn't it?
Thanks for the tutorials, they are very helpfull!

AryJaey
join shbcf.ru