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.
- 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.
- Java 8+ (Collections Framework, ArrayList)
- ScheduleManagerApp: The main class controlling the lifecycle of the student's schedule.
English
Math
Computer Science
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);
}
}
}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