Java Programming Tutorial 79 - Returning Custom Objects

preview_player
Показать описание


~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
Рекомендации по теме
Комментарии
Автор

Im on ur java tutor marathon, going to try it when im back home. Appreciate it man. Keep making good videos 😀

mirzasetiyono
Автор

It would be logic if return user would return the name of the user object, you or me or search. Maybe there is a way to do that in the override equals function...

trumbaron
Автор

for some reason in the mysweetprogram class, I'm getting an exception every time I implement found.setFirstName("Sally"). Because of that, I cannot change the you object to "Sally" after I've already declared you.setFirstName earlier in the class. I don't know if it's because I'm using intellij or mnaybe because I'm using a different version of Java and the rules are different.

davidcollinhannah
Автор

mine prints the id instead of the full name,

edit- i figured ot out, i hade users, you instead of users, search

edit2- now it only prints null

ollie
Автор

i kept getting null when searching for "not me". then I realized "not me" was not added to the List so i just had to do:

users.add(search);
and then my search worked fine

erickpeculiar
Автор

hey men please erase the previous program and write new one, for new class

amanweldemariam
Автор

Mr Curry: So we're gonna say user dot. find user, pass in our list of users and the user we're looking for @ 2:07 :D

Me: Who the f*** is user?

5 minutes later..

I think I'm gonna rename them something a bit more descriptive..

ETyreStore