This Java project simulates a basic social network as part of a Data Structures course assignment. Users can interact with each other through friend connections, activity tracking, and a simplified news feed.
- Add and remove users
- Add and remove friendships
- Post messages and view friend news feeds
- View personal activity feeds
- Search for users using binary search
- Find mutual friends
- Recommend new friends based on mutual connections
HashMap: For storing users and friend listsLinkedList: For user postsPriorityQueue: For activities and news feed (sorted by time)ArrayList: For adjacency/friend lists
- Clone the repository:
- Open the project in any Java IDE (e.g., IntelliJ, Eclipse) or compile via terminal:
- javac datastructureassignment1/*.java java datastructureassignment1.DataStructureAssignment1
=== Welcome to Social Network Assignment of Ata Sakik ===
Menu:
1. Add User
2. Add Friend
...