From 86920fcd21ea2631a809041e786abd851d1bd0e4 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 28 Mar 2025 14:31:02 +0100 Subject: use namespace dk.abcdefghijklmnopqrstuvxyzæøå.bachelorizer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bachelorizer.java | 54 --------------------- Makefile | 2 +- .../bachelorizer/Main.java" | 56 ++++++++++++++++++++++ 3 files changed, 57 insertions(+), 55 deletions(-) delete mode 100644 Bachelorizer.java create mode 100644 "dk/abcdefghijklmnopqrstuvxyz\303\246\303\270\303\245/bachelorizer/Main.java" diff --git a/Bachelorizer.java b/Bachelorizer.java deleted file mode 100644 index d30708e..0000000 --- a/Bachelorizer.java +++ /dev/null @@ -1,54 +0,0 @@ -import java.util.Arrays; - -/// Bachelorizer - bachelor programme registrar -/// -/// SPDX-License-Identifier: GPL-3.0-or-later -/// SPDX-FileCopyrightText: 2025 Jonas Smedegaard -/// -/// Tool for registering students -/// for activities in their bachelor programme. -/// -/// Core class usable in several ways -/// * as self-contained executable via method main() -/// * embedded in a larger system by instantiating Bachelorizer() -/// -/// * v0.0.1-draft -/// * initial release, as part of delivery "Portfolio 1" -/// -/// @version 0.0.1-draft -/// @see -public class Bachelorizer { - - public String name; - public String[] activities; - - /// Bachelorizer constructor - /// - /// @param name name of student as String - /// @param activities chosen activities as String array - public Bachelorizer( - final String name, - final String[] activities - ) { - this.name = name; - this.activities = activities; - } - - /// JVM entry point - /// - /// @param args command-line arguments (ignored) - public static void main(final String[] args) { - - // Instantiation as dictated by assignment - final int population = 10; - final int[] observationpoint = new int[] {5, 5}; - Bachelorizer session = new Bachelorizer( - "Jonas Smedegaard", - new String[] {"CS-SMC2", "CS-SMC3"}); - - // minimal viable product - System.out.printf("Hi %s%nYou chose these activities: ", - session.name); - System.out.println(Arrays.toString(session.activities)); - } -} diff --git a/Makefile b/Makefile index d489f5c..402cd21 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PROJECT = Bachelorizer +PROJECT = dk/abcdefghijklmnopqrstuvxyzæøå/bachelorizer/Main CLASSPATHS = . DOCUMENTS = delivery1 diff --git "a/dk/abcdefghijklmnopqrstuvxyz\303\246\303\270\303\245/bachelorizer/Main.java" "b/dk/abcdefghijklmnopqrstuvxyz\303\246\303\270\303\245/bachelorizer/Main.java" new file mode 100644 index 0000000..ee52b0a --- /dev/null +++ "b/dk/abcdefghijklmnopqrstuvxyz\303\246\303\270\303\245/bachelorizer/Main.java" @@ -0,0 +1,56 @@ +package dk.abcdefghijklmnopqrstuvxyzæøå.bachelorizer; + +import java.util.Arrays; + +/// Bachelorizer - bachelor programme registrar +/// +/// SPDX-License-Identifier: GPL-3.0-or-later +/// SPDX-FileCopyrightText: 2025 Jonas Smedegaard +/// +/// Tool for registering students +/// for activities in their bachelor programme. +/// +/// Core class usable in several ways +/// * as self-contained executable via method main() +/// * embedded in a larger system by instantiating Bachelorizer() +/// +/// * v0.0.1-draft +/// * initial release, as part of delivery "Portfolio 1" +/// +/// @version 0.0.1-draft +/// @see +public class Main { + + public String name; + public String[] activities; + + /// Main constructor + /// + /// @param name name of student as String + /// @param activities chosen activities as String array + public Main( + final String name, + final String[] activities + ) { + this.name = name; + this.activities = activities; + } + + /// JVM entry point + /// + /// @param args command-line arguments (ignored) + public static void main(final String[] args) { + + // Instantiation as dictated by assignment + final int population = 10; + final int[] observationpoint = new int[] {5, 5}; + Main session = new Main( + "Jonas Smedegaard", + new String[] {"CS-SMC2", "CS-SMC3"}); + + // minimal viable product + System.out.printf("Hi %s%nYou chose these activities: ", + session.name); + System.out.println(Arrays.toString(session.activities)); + } +} -- cgit v1.2.3