Skip to content

Template repository for basic java exercises

blitz-exercises/java-basics-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Java Basics Template

A minimal Java 21 project template for basic Java exercises and learning.

Project Structure

This project follows the standard Maven directory layout:

java-basics-template/
├── pom.xml                          # Maven configuration
├── README.md                        # This file
└── src/
    ├── main/
    │   └── java/
    │       └── nl/
    │           └── learninablitz/
    │               └── JavaBasicsApplication.java
    └── test/
        └── java/
            └── nl/
                └── learninablitz/
                    └── JavaBasicsApplicationTest.java

Requirements

  • Java 21 or higher
  • Maven 3.6 or higher

Getting Started

Prerequisites

Make sure you have Java 21 and Maven installed:

java -version
mvn -version

Running the Application

  1. Compile the project:

    mvn compile
  2. Run the main application:

    mvn exec:java -Dexec.mainClass="nl.learninablitz.JavaBasicsApplication"

Running Tests

Run all tests:

mvn test

Building the Project

Create a JAR file:

mvn package

Template Usage

This is a template repository. The main class and test class contain minimal starter code with TODO comments where you should add your implementation.

Learning Objectives

This template provides a foundation for:

  • Basic Java syntax and features
  • Unit testing with JUnit 5
  • Maven project structure
  • Clean code practices

About

Template repository for basic java exercises

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages