This repository contains a collection of five Java projects, each demonstrating different programming concepts and skills.
- Roman Numerals: A command-line application that processes financial data, including amounts in Roman numerals.
- String Commands: A command-line application that performs various string manipulations based on user commands.
- Hangman Game: A classic Hangman game with a command-line interface. It includes a ranking system.
- Hospital Management System: A command-line application for managing patients, doctors, diseases, and medicines in a hospital.
- Flood-It Multiplayer: A multiplayer version of the Flood-It game with a graphical user interface.
Each project is self-contained in its own directory. To run a project, you will need to have a Java Development Kit (JDK) installed.
To run this project, compile the Programmer.java file and then run the Programmer class:
cd "1. Roman Numerals/src"
javac poroje1/Programmer.java
java poroje1.ProgrammerTo run this project, compile the StringCommands.java and Methods.java files and then run the StringCommands class:
cd "2. String Commands/src"
javac com/themn/stringCommands/Methods.java com/themn/stringCommands/StringCommands.java
java com.themn.stringCommands.StringCommandsTo run this project, compile all the .java files in the poroje3 directory and then run the Hangman class:
cd "3. Hangman Game/src"
javac poroje3/*.java
java poroje3.HangmanTo run this project, compile all the .java files in the poroje4 directory and then run the HospitalManager class:
cd "4. Hospital Management System/src"
javac poroje4/*.java
java poroje4.HospitalManagerThis project has a client-server architecture. To run it, you first need to start the server and then connect one or more clients.
To start the server:
cd "5. Flood-It Multiplayer/src"
javac *.java
java MainClassThen, in the GUI, select "MultiPlayer" and then "Host a server".
To start a client:
Run the MainClass again:
cd "5. Flood-It Multiplayer/src"
java MainClassIn the GUI, select "MultiPlayer" and then "Join a server". Enter the server address (e.g., "localhost:1973") to connect.
This is a simple multi-user chat application built in Java. It consists of a server and a client, allowing multiple users to connect to a chat room and exchange messages.
To compile:
cd "multi-user-chat"
javac -d bin src/Server.java src/Client.javaTo run the server:
cd "multi-user-chat"
java -cp bin ServerTo run the client:
cd "multi-user-chat"
java -cp bin Client