JoD Ep2: Building a Multi-User Chat Application in Java - Part 2: User Presence

preview_player
Показать описание
Video tutorial series on how to build a multi-user chat client/server application in Java.

In this video, we deal with user presence. How to handle user login & logoff as well as notify other connected users of other user's presence.

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

I keep asking myself why I did not find your tutorials earlier....Your logic is the clearest and tidiest!!!!

ccchiu
Автор

This is very educational so far.
- The usage of "login" for command word and variables confused the hell out of me, so I changed the variable name to loggedInUser.
- By the second half of the video I managed to get into the rhythm of how to do things, so I paused the video before certain steps and tried to solve things on my own. I managed to get rid of most of the unwanted messages, made my own handleLogOut() method, including sending a logout message to the other users, etc.


Feels good.
Thanks!

zedzedder
Автор

Ok guys, if you had same problem as you, with StringUtils.split i can use line.split(" ") or instead u can do this
2. extract it
3. find in extracted folder commons-lang3-3.11jar (u may have onther numbers if u downloaded later version), copy it and paste in "lib" folder that u could see at 4:41 in this video
4. File->Projecr click "+"-> jars or directories -> find and click that file.
5. hower your mouse over red text, and click import, or type import

АлексейЗахарченко-ос
Автор

again i have to say this is a great tutorial, i've always wanted to understand socket programming a bit and have found your videos so useful

laurence
Автор

Jim, thank you very much for sharing this. Its amazing to watch you create this app, it really motivates me to continue learning Java so one day l can be as good as you are. I would like to ask you, what books should l get to get really good in java? from basic to advanced programing.

ropperish
Автор

Why didn't you use the StringTokenizer class instead?
Great tutorial anyway!

systemoutprinthakim
Автор

Waiting for your next video of this series

Please upload fast

cyberstair
Автор

Thank you this tutorial, as well as your other ones are a huge help.

blakewolters
Автор

Thank you, great tutorial! Can't find the sourcecode when I visit your link. Could you send it somehow?

soffylicous
Автор

i am working on intelij my the command at 5:04 String[] was not working so i used String[] tokens = line.split("//s"); and its working

umberzahid
Автор

does anyone have the project file cause the link in the description does not work.

salimdido
Автор

How do you add the "Server" as a parameter in the "serverWorker" method? Netbeans doesn't give me this option

BrainTrance
Автор

What is the purpose of the Server class ?I think we can put the list of ServerWorker in the ServerMain class

youcantsee
Автор

Excuse me sir but how did you pass Server as part of the method?

Soulfog
Автор

Hello sir and everybody...my question is...
Can you please tell me, is this possible that we send msg from one machine to another machine on different location...?
Because with me, it is only working on the localhost, not on the other computer's ip address on different location...
Please reply...🙏

tulsikhatri
Автор

Hi, Is there a part 3 in the series on how to allow user to user communication?

ciaranmooney
Автор

Hey Jim how can we make Multiple chatrooms where a user can switch from one chat room to another?

deepakrajpurohit
Автор

why can't my command Prompt show the handleLogin() part :( .

thienay
Автор

Hi, When I use a CMD terminal or putty terminal for the client session, the output is not left aligned like it is in the tutorial. So when I input data form client to server I think its reading extra spaces / special characters, has this happened to anyone else?

ciaranmooney
Автор

How are you killing your server thread?

beerbatteredfishpokerclub