programming

Object Oriented Programming (Code)

Introduction: Hello and welcome to a tutorial on Object Oriented Programming, with code examples as opposed to theory. Ready the theory page Before starting this page make sure you have read and understand the theory page which can be found here. Instances The use of OOP is to have multiple instances of one class running at the same time, each with it's own variables and methods.

Object Oriented Programming (Theory)

Introduction: Welcome! This page will be explaining Object Oriented Programming with examples. The examples are theory only but a code example will be released soon (if not already). What is Object Oriented Programming? Object Oriented Programming (OOP) is commonly used in programs which require doing the same things over and over again. Much like a function or method can be ran multiple times, OOP classes can be ran multiple times, simultaneously. When is OOP used? OOP is used in games and some other software.

Network Programming in Java - #8 - Chat System #3 - The Message Packet

Introduction: This tutorial is the eighth in my Java Network Programming using KryoNet series, or third in creating a chat client and server system, in which we are going to be handling sending and receiving messages. Previous: In the previous tutorial we created a client handler for our server to keep track of the connected clients. The System: We are going to give the user a GUI to interact with the system - to send messages and see the currently connected members of the chat. When a client connects, add them to a list. Send incoming messa

Network Programming in Java - #7 - Chat System #2 - Client Handler

Introduction: This tutorial is the seventh in my Java Network Programming using KryoNet series, or second in creating a chat client and server system, in which we are going to be setting up a way to handle clients on our server. Previous: In the previous tutorial we altered snippets of code to convert them from our test server and clients to our beginning point of chat server and clients. The System: We are going to give the user a GUI to interact with the system - to send messages and see the currently connected members of the chat. When a

Network Programming in Java - #6 - Chat System #1 - Cleaning Test Files and Sending Usernames

Introduction: This tutorial is the sixth in my Java Network Programming using KryoNet series in which we are going to be beginning our multi-client chat system. We are going to be running off the test server and client so make sure you have followed and understood the previous tutorials of this series. Previous: In the previous tutorial we created an Package of Packets involving Packet and Packet1Connect.

Network Programming in Java - #3 - Creating a Test Client

Introduction: This tutorial is the third in my Java Network Programming using KryoNet series in which we are creating a test client to connect to our test server. Previous: In the previous tutorial we created a test server. IMPORTANT: A) Your server and client can not be running at the same time, in Eclipse, in the same Java Project.

Network Programming in Java - #2 - Creating a Test Server

Introduction: This tutorial is the second in my Java Network Programming using KryoNet series in which we are creating a test server. Previous: In the previous tutorial we downloaded the KryoNet files and set up our projects. Test Server: So first, create a new file called Main (can be whatever you like) and add the following imports...
  1. import java.io.IOException;

Chat System - Admin Command Kick - Client Side

Introduction: This tutorial is the eighteenth in my Java Network Programming using KryoNet series, or thirteenth in creating a chat client and server system, in which we are going to be giving clients a command to request actions from an admin. Previous: In the previous tutorial we added private message features to the client. The System: We are going to give the user a GUI to interact with the system - to send messages and see the currently connected members of the chat. When a client connects, add them to a list. Send incoming messages to

Chat System - User Levels

Introduction: This tutorial is the seventeenth in my Java Network Programming using KryoNet series, or twelfth in creating a chat client and server system, in which we are going to be adding a user level system in to the server in preparation for the next tutorial (making requests from clients to admins). Previous: In the previous tutorial we added private message features to the client. The System: We are going to give the user a GUI to interact with the system - to send messages and see the currently connected members of the chat. When a c