#!/bin/bash

echo "Compiling Java source files..."
mkdir -p bin
javac -d bin src/*.java

if [ $? -eq 0 ]; then
    echo "Compilation successful!"
    echo "Run the application with: java -cp bin Main"
else
    echo "Compilation failed!"
    exit 1
fi

