Skip to content

YuriiJavaDev/JavaBasics_Task_447_V0.1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Student Schedule: Dynamic List Manipulation (JavaBasics_Task_447_V0.1)

📖 Description

University schedules are subject to frequent changes during the registration period. This project simulates a Course Scheduling System using Java's ArrayList. We explore advanced list operations beyond simple addition:

  • Positional Insertion: Using index-based add(index, element) to prioritize subjects.
  • Element Removal: Using remove(Object) to drop specific courses.
  • Iterative Display: Printing each element individually to simulate a structured schedule view.

📋 Requirements Compliance

  • Dynamic Reordering: Successfully moved "English" to the top of the list.
  • Specific Deletion: Removed "Physics" while maintaining the rest of the collection.
  • Custom Output: Formatted the output to show each subject on a new line.

🚀 Architectural Stack

  • Java 8+ (Collections Framework, ArrayList)

🏗️ Implementation Details

  • ScheduleManagerApp: The main class controlling the lifecycle of the student's schedule.

📋 Expected result

English
Math
Computer Science

💻 Code Example

Project Structure:

JavaBasics_Task_447/
├── src/
│   └── com/yurii/pavlenko/
│                 └── app/
│                     └── ScheduleManagerApp.java
├── LICENSE
├── TASK.md
├── THEORY.md
└── README.md

Code

package com.yurii.pavlenko.app;

import java.util.ArrayList;
import java.util.List;

public class ScheduleManagerApp {

    public static void main(String[] args) {

        List<String> subjects = new ArrayList<>();

        subjects.add("Math");
        subjects.add("Physics");
        subjects.add("Computer Science");

        subjects.add(0, "English");

        subjects.remove("Physics");

        for (String subject : subjects) {
            System.out.println(subject);
        }
    }
}

⚖️ License

This project is licensed under the MIT License.

Copyright (c) 2026 Yurii Pavlenko

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files...

License: MIT

About

This is a tutorial project. JavaBasics_Task_447_V0.1 Student Schedule: managing course lists through positional insertion and targeted removal in ArrayList. 110526_1028

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages